Skip to content

Commit 14d49b6

Browse files
Amanieuarthurprs
authored andcommitted
Use a union to reduce the size of SmallVec
1 parent de80de5 commit 14d49b6

File tree

3 files changed

+259
-166
lines changed

3 files changed

+259
-166
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ documentation = "http://doc.servo.org/smallvec/"
1212

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

1718
[lib]
1819
name = "smallvec"
1920
path = "lib.rs"
2021

2122
[dependencies]
23+
unreachable = "1.0.0"
24+
debug_unreachable = "0.1"
2225
serde = { version = "1", optional = true }
2326

2427
[dev_dependencies]

0 commit comments

Comments
 (0)