From 96db1f4edb862c32d4f1cf9708188359eb475774 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Wed, 27 Nov 2024 22:14:21 -0500 Subject: [PATCH] ci: test with `rustc-dep-of-std` Add a test that the crate builds correctly with the configuration that is used in `std`. (backport ) (cherry picked from commit 9839a9ab3727e8046afb1951b4e3ace016b64476) --- ci/verify-build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/verify-build.sh b/ci/verify-build.sh index e1cad0b7df57..97d6bba4f822 100755 --- a/ci/verify-build.sh +++ b/ci/verify-build.sh @@ -70,6 +70,11 @@ test_target() { $cmd --no-default-features $cmd --no-default-features --features extra_traits + # Ensure the crate will build when used with `std` + if [ "$rust" = "nightly" ]; then + $cmd --no-default-features --features rustc-dep-of-std + fi + # For tier 2 freebsd targets, check with the different versions we support # if on nightly or stable case "$rust-$target" in