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
Copy file name to clipboardExpand all lines: README.md
+6-14
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@
4
4
This repository contains the officially supported MongoDB Rust driver, a client side library that can be used to interact with MongoDB deployments in Rust applications. It uses the [`bson`](https://docs.rs/bson) crate for BSON support. The driver contains a fully async API that supports either [`tokio`](https://crates.io/crates/tokio) (default) or [`async-std`](https://crates.io/crates/async-std), depending on the feature flags set. The driver also has a sync API that may be enabled via feature flag.
5
5
6
6
## Index
7
-
-[Installation](#Installation)
7
+
-[Installation](#installation)
8
+
-[Requirements](#requirements)
8
9
-[Importing](#importing)
9
10
-[Configuring the async runtime](#configuring-the-async-runtime)
10
11
-[Enabling the sync API](#enabling-the-sync-api)
@@ -26,16 +27,7 @@ This repository contains the officially supported MongoDB Rust driver, a client
26
27
27
28
## Installation
28
29
### Requirements
29
-
| Driver Version | Required Rust Version |
30
-
|:--------------:|:---------------------:|
31
-
| master | 1.47+ |
32
-
| 2.0.0-alpha | 1.45+ |
33
-
| 1.2.x | 1.43+ |
34
-
| 1.1.x | 1.43+ |
35
-
| 1.0.x | 1.43+ |
36
-
| 0.11.x | 1.43+ |
37
-
| 0.10.x | 1.43+ |
38
-
| 0.9.x | 1.39+ |
30
+
- Rust 1.47+
39
31
- MongoDB 3.6+
40
32
41
33
**Note**: A bug affecting Rust 1.46-1.47 may cause out-of-memory errors when compiling an application that uses the 1.1
@@ -46,7 +38,7 @@ issue. For more information, see https://github.com/rust-lang/rust/issues/75992.
46
38
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`.
47
39
```toml
48
40
[dependencies]
49
-
mongodb = "1.1.1"
41
+
mongodb = "2.0.0-alpha"
50
42
```
51
43
52
44
#### Configuring the async runtime
@@ -55,7 +47,7 @@ The driver supports both of the most popular async runtime crates, namely [`toki
55
47
For example, to instruct the driver to work with [`async-std`](https://crates.io/crates/async-std), add the following to your `Cargo.toml`:
56
48
```toml
57
49
[dependencies.mongodb]
58
-
version = "1.1.1"
50
+
version = "2.0.0-alpha"
59
51
default-features = false
60
52
features = ["async-std-runtime"]
61
53
```
@@ -64,7 +56,7 @@ features = ["async-std-runtime"]
64
56
The driver also provides a blocking sync API. To enable this, add the `"sync"` feature to your `Cargo.toml`:
0 commit comments