Skip to content

Commit 21a884f

Browse files
authored
RUST-2213 Test MSRV compilation with bson-3 enabled (#1449)
1 parent bf074c1 commit 21a884f

File tree

6 files changed

+8
-16
lines changed

6 files changed

+8
-16
lines changed

.evergreen/aws-lambda-test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To deploy the application, you need the folllowing tools:
3333

3434
* SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
3535
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
36-
* [Rust](https://www.rust-lang.org/) version 1.82.0 or newer
36+
* [Rust](https://www.rust-lang.org/) version 1.83.0 or newer
3737
* [cargo-lambda](https://github.com/cargo-lambda/cargo-lambda) for cross-compilation
3838

3939
To build and deploy your application for the first time, run the following in your shell:

.evergreen/compile-only.sh

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

2323
# Test with all features.
24-
if [ "$RUST_VERSION" != "" ]; then
25-
cargo $TOOLCHAIN build --features openssl-tls,sync,aws-auth,gssapi-auth,zlib-compression,zstd-compression,snappy-compression,in-use-encryption,tracing-unstable
26-
else
27-
cargo $TOOLCHAIN build --all-features
28-
fi
24+
cargo $TOOLCHAIN build --all-features
2925

3026
# Test with no default features.
31-
if [ "$RUST_VERSION" != "" ]; then
32-
cargo $TOOLCHAIN build --no-default-features --features compat-3-0-0,rustls-tls
33-
else
34-
cargo $TOOLCHAIN build --no-default-features --features compat-3-3-0,bson-3,rustls-tls
35-
fi
27+
cargo $TOOLCHAIN build --no-default-features --features compat-3-3-0,bson-3,rustls-tls

.evergreen/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ tasks:
790790
- func: "compile only"
791791
vars:
792792
# Our minimum supported Rust version. This should be updated whenever the MSRV is bumped.
793-
RUST_VERSION: 1.82.0
793+
RUST_VERSION: 1.83.0
794794

795795
- name: check-cargo-deny
796796
commands:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ license = "Apache-2.0"
1717
readme = "README.md"
1818
name = "mongodb"
1919
version = "3.2.3"
20-
rust-version = "1.82"
20+
rust-version = "1.83"
2121

2222
exclude = [
2323
"etc/**",

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For more details, including features, runnable examples, troubleshooting resourc
1010

1111
### Requirements
1212

13-
- Rust 1.82.0+ (See the [MSRV policy](#minimum-supported-rust-version-msrv-policy) for more information)
13+
- Rust 1.83.0+ (See the [MSRV policy](#minimum-supported-rust-version-msrv-policy) for more information)
1414
- MongoDB 4.0+
1515

1616
#### Supported Platforms
@@ -185,7 +185,7 @@ Commits to main are run automatically on [evergreen](https://evergreen.mongodb.c
185185

186186
## Minimum supported Rust version (MSRV) policy
187187

188-
The MSRV for this crate is currently 1.82.0. Increases to the MSRV will only happen in a minor or major version release, and will be to a Rust version at least six months old.
188+
The MSRV for this crate is currently 1.83.0. Increases to the MSRV will only happen in a minor or major version release, and will be to a Rust version at least six months old.
189189

190190
## License
191191

clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
msrv = "1.82.0"
1+
msrv = "1.83.0"

0 commit comments

Comments
 (0)