diff --git a/ci/test-checks.sh b/ci/test-checks.sh index ebe6686ae3d5a3..91affdf9cacb4e 100755 --- a/ci/test-checks.sh +++ b/ci/test-checks.sh @@ -31,21 +31,6 @@ EOF _ cargo "+${rust_nightly}" install cargo-hack --locked -# Detect possible compilation errors of problematic usage of `dev-utils`-gated code -# without being explicitly declared as such in respctive workspace member -# `Cargo.toml`s. This cannot be detected with `--workspace --all-targets`, due -# to unintentional `dev-utils` feature activation by cargo's feature -# unification mechanism. -# So, we use `cargo hack` to exhaustively build each individual workspace -# members in isolation to work aournd. - -# Check implicit usage of `dev-utils`-gated code in non-dev (= production) code by -# buidling without dev dependencies (= tests/benches) for each crate -_ cargo "+${rust_nightly}" hack check --bins -# Check implicit usage of `dev-utils`-gated code in dev (= test/benches) code by -# building in isolation from other crates, which might happen to enable `dev-utils` -_ cargo "+${rust_nightly}" hack check --all-targets - echo --- build environment ( set -x @@ -129,6 +114,21 @@ else _ scripts/cargo-for-all-lock-files.sh -- "+${rust_nightly}" sort --workspace --check fi +# Detect possible compilation errors of problematic usage of `dev-utils`-gated code +# without being explicitly declared as such in respctive workspace member +# `Cargo.toml`s. This cannot be detected with `--workspace --all-targets`, due +# to unintentional `dev-utils` feature activation by cargo's feature +# unification mechanism. +# So, we use `cargo hack` to exhaustively build each individual workspace +# members in isolation to work aournd. + +# Check implicit usage of `dev-utils`-gated code in non-dev (= production) code by +# buidling without dev dependencies (= tests/benches) for each crate +_ cargo "+${rust_nightly}" hack check --bins +# Check implicit usage of `dev-utils`-gated code in dev (= test/benches) code by +# building in isolation from other crates, which might happen to enable `dev-utils` +_ cargo "+${rust_nightly}" hack check --all-targets + _ scripts/cargo-for-all-lock-files.sh -- "+${rust_nightly}" fmt --all -- --check _ ci/do-audit.sh