Skip to content

Commit 4f72caf

Browse files
committed
Leave global feature off-by-default
1 parent 1874804 commit 4f72caf

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ matrix:
66
- rust: beta
77
- rust: nightly
88
- rust: nightly
9+
name: "allocator api"
910
script:
1011
- cargo test --features allocator-api
1112
- rust: nightly
13+
name: "wasm"
1214
install: rustup target add wasm32-unknown-unknown
1315
script:
1416
- cargo build --target wasm32-unknown-unknown
@@ -17,6 +19,7 @@ matrix:
1719
script:
1820
- cargo test
1921
- cargo test --features debug
22+
- cargo test --features global
2023
- cargo test --release
2124
- cargo test --release --features debug
2225
- RUSTFLAGS='--cfg test_lots' cargo test --release

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ rand = "0.3"
1717
debug-assertions = true
1818

1919
[features]
20-
default = ["global"]
20+
# Enable implementations of the `GlobalAlloc` standard library API, exporting a
21+
# new `GlobalDlmalloc` as well which implements this trait.
2122
global = []
23+
24+
# Enable very expensive debug checks in this crate
2225
debug = []
26+
27+
# Enable experimental support for the standard library's unstable allocator API.
2328
allocator-api = []

0 commit comments

Comments
 (0)