Skip to content

Commit 02a19d7

Browse files
committed
Use a union to reduce the size of SmallVec
1 parent d50dda4 commit 02a19d7

File tree

3 files changed

+201
-126
lines changed

3 files changed

+201
-126
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ rust:
55
- stable
66
script: |
77
cargo build --verbose &&
8-
cargo build --all-features --verbose &&
98
cargo test --verbose &&
10-
cargo test --all-features --verbose &&
119
([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --no-default-features) &&
10+
([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --features union) &&
1211
([ $TRAVIS_RUST_VERSION != nightly ] || cargo bench --verbose bench)
1312
notifications:
1413
webhooks: http://build.servo.org:54856/travis

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ documentation = "http://doc.servo.org/smallvec/"
1212

1313
[features]
1414
std = []
15+
union = []
1516
default = ["std"]
1617

1718
[lib]

0 commit comments

Comments
 (0)