@@ -10,10 +10,33 @@ before_cache:
1010
1111matrix :
1212 include :
13- # This is the minimum Rust version supported by futures-rs .
13+ # This is the minimum Rust version supported by futures-core, futures-io, futures-sink, futures-task, futures-channel .
1414 # When updating this, the reminder to update the minimum required version in README.md.
15- - name : cargo check (minimum required version)
15+ - name : cargo check (minimum required version of futures-{core, io, sink, task} )
1616 rust : 1.36.0
17+ install :
18+ # cargo does not support for --features/--no-default-features with workspace, so use cargo-hack instead.
19+ # Refs: cargo#3620, cargo#4106, cargo#4463, cargo#4753, cargo#5015, cargo#5364, cargo#6195
20+ - if ! cargo hack -V 2>/dev/null; then
21+ cargo install cargo-hack;
22+ fi
23+ script :
24+ # remove dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866
25+ - cargo hack --remove-dev-deps --workspace
26+ # Check no-default-features
27+ - cargo hack check --workspace --ignore-private --no-default-features
28+ --exclude futures --exclude futures-util --exclude futures-executor --exclude futures-test
29+ # Check alloc feature
30+ - cargo hack check --workspace --ignore-private --no-default-features --features alloc --ignore-unknown-features
31+ --exclude futures --exclude futures-util --exclude futures-executor --exclude futures-test
32+ # Check std feature
33+ - cargo hack check --workspace --ignore-private --no-default-features --features std --ignore-unknown-features
34+ --exclude futures --exclude futures-util --exclude futures-executor --exclude futures-test
35+
36+ # This is the minimum Rust version supported by futures, futures-util, futures-executor, futures-test.
37+ # When updating this, the reminder to update the minimum required version in README.md.
38+ - name : cargo check (minimum required version of futures-{util, executor, test})
39+ rust : 1.37.0
1740 install :
1841 # cargo does not support for --features/--no-default-features with workspace, so use cargo-hack instead.
1942 # Refs: cargo#3620, cargo#4106, cargo#4463, cargo#4753, cargo#5015, cargo#5364, cargo#6195
0 commit comments