Skip to content

Commit 6c28c8f

Browse files
author
Felix Stegmaier
committed
make feature const-fn default
1 parent 40133fe commit 6c28c8f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ repository = "https://github.com/japaric/heapless"
1919
version = "0.3.6"
2020

2121
[features]
22+
default = ["const-fn"]
2223
const-fn = []
2324

2425
[dev-dependencies]

ci/script.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ main() {
55

66
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
77
cargo test --target $TARGET
8-
cargo test --target $TARGET --all-features
8+
cargo test --target $TARGET --no-default-features
99
cargo test --target $TARGET --release
10-
cargo test --target $TARGET --release --all-features
10+
cargo test --target $TARGET --release --no-default-features
1111

1212
export RUSTFLAGS="-Z sanitizer=thread"
1313
export RUST_TEST_THREADS=1
1414
export TSAN_OPTIONS="suppressions=$(pwd)/blacklist.txt"
1515

1616
cargo test --test tsan --target $TARGET
17-
cargo test --test tsan --target $TARGET --all-features
17+
cargo test --test tsan --target $TARGET --no-default-features
1818
cargo test --test tsan --target $TARGET --release
19-
cargo test --test tsan --target $TARGET --release --all-features
19+
cargo test --test tsan --target $TARGET --release --no-default-features
2020
fi
2121
}
2222

0 commit comments

Comments
 (0)