File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -192,22 +192,23 @@ jobs:
192
192
- run : cargo bench --manifest-path futures-util/Cargo.toml --features=bilock,unstable
193
193
194
194
features :
195
- name : cargo hack check --each- feature
195
+ name : cargo hack check --feature-powerset
196
196
runs-on : ubuntu-latest
197
197
steps :
198
198
- uses : actions/checkout@v2
199
199
- name : Install Rust
200
200
run : rustup update nightly && rustup default nightly
201
201
- run : cargo install cargo-hack
202
202
# Check each specified feature works properly
203
- # * `--each-feature` - run for each feature which includes --no-default-features and default features of package
203
+ # * `--feature-powerset` - run for the feature powerset of the package
204
+ # * `--depth 2` - limit the max number of simultaneous feature flags of `--feature-powerset`
204
205
# * `--no-dev-deps` - build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866
205
206
# * `--exclude futures-test` - futures-test cannot be compiled with no-default features
206
207
# * `--features unstable` - some features cannot be compiled without this feature
207
208
# * `--ignore-unknown-features` - some crates doesn't have 'unstable' feature
208
209
- run : |
209
210
cargo hack check \
210
- --each- feature --no-dev-deps \
211
+ --feature-powerset --depth 2 --no-dev-deps \
211
212
--workspace --exclude futures-test \
212
213
--features unstable --ignore-unknown-features
213
214
You can’t perform that action at this time.
0 commit comments