Skip to content

Commit bcbd35f

Browse files
author
Zane Hannan
committed
update travis, re-add compile time check for xor feature.
1 parent 3ae8910 commit bcbd35f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ before_script:
2020

2121
script:
2222
- cargo test
23-
- cargo test --all-features
23+
- cargo test --no-default-features --features native-tokio
24+
- cargo test --no-default-features --features webpki-tokio
2425
- cargo test --no-default-features
2526
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "$CLIPPY_RUST_VERSION" ]]; then
2627
cargo clippy -- -D warnings;

src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
//! # fn main() {}
2323
//! ```
2424
25+
#[cfg(all(
26+
feature = "tokio-runtime",
27+
any(not(feature = "rustls-native-certs"), feature = "webpki-roots"),
28+
any(not(feature = "webpki-roots"), feature = "rustls-native-certs")
29+
))]
30+
compile_error!(
31+
"Must enable exactly one of rustls-native-certs (default) or webpki-roots with tokio-runtime! (note: use `default-features = false' in a binary crate for one or other)"
32+
);
33+
2534
mod connector;
2635
mod stream;
2736

0 commit comments

Comments
 (0)