Verification · Testing · Version and platform matrix
Feature powerset
Build and test each combination of optional features or extras.
How to build it
- Run cargo hack with --feature-powerset in CI, bounding cost with --depth if needed.
- Exclude feature combinations that cannot build, with a reason in the config.
- Run the test suite for each combination that builds.
Signals in a repository
- cargo hack --feature-powerset steps in a workflow file.
- Feature lists in Cargo.toml with exclude or depth settings in the CI command.
- CI logs that show one run per feature combination.
In practice
4 repositories run a tool for this check in the scanned set.
cargo-hack· 4 repos
Examples
-
pola-rs/polars ·
cargo-hackcargo hack check -p polars --each-feature --no-dev-deps -
juspay/hyperswitch ·
cargo-hackcargo hack check --workspace --each-feature --all-targets --exclude-features v2 payment_v2 -
tokio-rs/tokio ·
cargo-hackcargo hack test --each-feature -
tokio-rs/axum ·
cargo-hackcargo hack check --each-feature --no-dev-deps --all