Skip to content

Commit 459fd81

Browse files
Fix MSRV check (#1393)
1 parent cd83266 commit 459fd81

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.evergreen/compile-only.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ fi
1616
cargo $TOOLCHAIN build
1717

1818
# Test with all features.
19-
cargo $TOOLCHAIN build --all-features
19+
if [ "$RUST_VERSION" != "" ]; then
20+
cargo $TOOLCHAIN build --features openssl-tls,sync,aws-auth,zlib-compression,zstd-compression,snappy-compression,in-use-encryption,tracing-unstable
21+
else
22+
cargo $TOOLCHAIN build --all-features
23+
fi
2024

2125
# Test with no default features.
22-
cargo $TOOLCHAIN build --no-default-features --features compat-3-3-0,bson-3,rustls-tls
26+
if [ "$RUST_VERSION" != "" ]; then
27+
cargo $TOOLCHAIN build --no-default-features --features compat-3-0-0,rustls-tls
28+
else
29+
cargo $TOOLCHAIN build --no-default-features --features compat-3-3-0,bson-3,rustls-tls
30+
fi

0 commit comments

Comments
 (0)