checks: run with all features enabled

As discussed in #12649, we should check builds with all Cargo features
enabled. Previously, this did cause issues with the `benchmark` feature,
since that only works with nightly Rust. #12653 resolves that by only
enabling the `benchmark` feature with the nightly toolchain, so now we
can use `--all-features` with stable Rust.

Closes #12657
This commit is contained in:
Daniel Rainer
2026-04-19 17:25:09 +02:00
committed by Johannes Altmanninger
parent 0dfe06f4c9
commit ca2b5dc40b
2 changed files with 3 additions and 1 deletions

View File

@@ -32,6 +32,8 @@ jobs:
features: ""
- rust_version: "stable"
features: "--no-default-features"
- rust_version: "stable"
features: "--all-features"
- rust_version: "msrv"
features: ""
steps:

View File

@@ -99,7 +99,7 @@ if $lint; then
cargo deny --all-features --locked --exclude-dev check licenses
fi
PATH="$build_dir:$PATH" cargo xtask format --all --check
for features in "" --no-default-features; do
for features in "" --no-default-features --all-features; do
cargo clippy --workspace --all-targets $features
done
fi