Skip to content

Commit 96db1f4

Browse files
committed
ci: test with rustc-dep-of-std
Add a test that the crate builds correctly with the configuration that is used in `std`. (backport <#4158>) (cherry picked from commit 9839a9a)
1 parent 4ca22fa commit 96db1f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci/verify-build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ test_target() {
7070
$cmd --no-default-features
7171
$cmd --no-default-features --features extra_traits
7272

73+
# Ensure the crate will build when used with `std`
74+
if [ "$rust" = "nightly" ]; then
75+
$cmd --no-default-features --features rustc-dep-of-std
76+
fi
77+
7378
# For tier 2 freebsd targets, check with the different versions we support
7479
# if on nightly or stable
7580
case "$rust-$target" in

0 commit comments

Comments
 (0)