You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Minimum supported Rust version (MSRV) policy](#minimum-supported-rust-version-msrv-policy)
31
32
-[License](#license)
32
33
33
34
## Installation
34
35
### Requirements
35
-
- Rust 1.57+
36
+
- Rust 1.57+ (See the [MSRV policy](#minimum-supported-rust-version-msrv-policy) for more information)
36
37
- MongoDB 3.6+
37
38
39
+
#### Supported Platforms
40
+
41
+
The driver tests against Linux, MacOS, and Windows in CI.
42
+
38
43
### Importing
39
44
The driver is available on [crates.io](https://crates.io/crates/mongodb). To use the driver in your application, simply add it to your project's `Cargo.toml`.
40
45
```toml
41
46
[dependencies]
42
47
mongodb = "2.3.0"
43
48
```
44
49
50
+
Version 1 of this crate has reached end of life and will no longer be receiving any updates or bug fixes, so all users are recommended to always depend on the latest 2.x release. See the [2.0.0 release notes](https://github.com/mongodb/mongo-rust-driver/releases/tag/v2.0.0) for migration information if upgrading from a 1.x version.
51
+
45
52
#### Configuring the async runtime
46
53
The driver supports both of the most popular async runtime crates, namely [`tokio`](https://crates.io/crates/tokio) and [`async-std`](https://crates.io/crates/async-std). By default, the driver will use [`tokio`](https://crates.io/crates/tokio), but you can explicitly choose a runtime by specifying one of `"tokio-runtime"` or `"async-std-runtime"` feature flags in your `Cargo.toml`.
47
54
@@ -244,10 +251,6 @@ The driver can be used easily with the Actix web framework by storing a `Client`
244
251
### Rocket
245
252
The Rocket web framework provides built-in support for MongoDB via the Rust driver. The documentation for the [`rocket_db_pools`](https://api.rocket.rs/v0.5-rc/rocket_db_pools/index.html) crate contains instructions for using MongoDB with your Rocket application.
246
253
247
-
## Platforms
248
-
249
-
The driver tests against Linux, MacOS, and Windows in CI.
250
-
251
254
## Note on connecting to Atlas deployments
252
255
253
256
In order to connect to a pre-4.2 Atlas instance that's M2 or bigger, the `openssl-tls` feature flag must be enabled. The flag is not required for clusters smaller than M2 or running server versions 4.2 or newer.
@@ -367,7 +370,7 @@ bash .evergreen/check-all.sh
367
370
## Continuous Integration
368
371
Commits to main are run automatically on [evergreen](https://evergreen.mongodb.com/waterfall/mongo-rust-driver).
369
372
370
-
## Minimum supported Rust version (MSRV)
373
+
## Minimum supported Rust version (MSRV) policy
371
374
372
375
The MSRV for this crate is currently 1.57.0. This will rarely be increased, and if it ever is,
373
376
it will only happen in a minor or major version release.
0 commit comments