Skip to content

Commit 648ebe3

Browse files
committed
release v2.0.0
1 parent 22adc2a commit 648ebe3

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repository = "https://github.com/mongodb/mongo-rust-driver"
88
license = "Apache-2.0"
99
readme = "README.md"
1010
name = "mongodb"
11-
version = "2.0.0-beta.3"
11+
version = "2.0.0"
1212

1313
exclude = [
1414
"etc/**",

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# MongoDB Rust Driver
22
[![Crates.io](https://img.shields.io/crates/v/mongodb.svg)](https://crates.io/crates/mongodb) [![docs.rs](https://docs.rs/mongodb/badge.svg)](https://docs.rs/mongodb) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
33

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/2.0.0-beta.3) 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.
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/latest) 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.
55

66
## Index
77
- [Installation](#installation)
@@ -36,7 +36,7 @@ This repository contains the officially supported MongoDB Rust driver, a client
3636
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`.
3737
```toml
3838
[dependencies]
39-
mongodb = "2.0.0-beta.3"
39+
mongodb = "2.0.0"
4040
```
4141

4242
#### Configuring the async runtime
@@ -45,7 +45,7 @@ The driver supports both of the most popular async runtime crates, namely [`toki
4545
For example, to instruct the driver to work with [`async-std`](https://crates.io/crates/async-std), add the following to your `Cargo.toml`:
4646
```toml
4747
[dependencies.mongodb]
48-
version = "2.0.0-beta.3"
48+
version = "2.0.0"
4949
default-features = false
5050
features = ["async-std-runtime"]
5151
```
@@ -54,7 +54,7 @@ features = ["async-std-runtime"]
5454
The driver also provides a blocking sync API. To enable this, add the `"sync"` feature to your `Cargo.toml`:
5555
```toml
5656
[dependencies.mongodb]
57-
version = "2.0.0-beta.3"
57+
version = "2.0.0"
5858
default-features = false
5959
features = ["sync"]
6060
```
@@ -68,11 +68,11 @@ features = ["sync"]
6868
| `async-std-runtime` | Enable support for the `async-std` runtime | `async-std` 1.0 | no |
6969
| `sync` | Expose the synchronous API (`mongodb::sync`). This flag cannot be used in conjunction with either of the async runtime feature flags. | `async-std` 1.0 | no |
7070
| `aws-auth` | Enable support for the MONGODB-AWS authentication mechanism. | `reqwest` 0.11 | no |
71-
| `bson-uuid-0_8` | Enable support for v0.8 of the [`uuid`](docs.rs/uuid/0.8) crate in the public API of the re-exported `bson` crate. | `uuid` 0.8 | no |
71+
| `bson-uuid-0_8` | Enable support for v0.8 of the [`uuid`](docs.rs/uuid/0.8) crate in the public API of the re-exported `bson` crate. | n/a | no |
7272
| `bson-chrono-0_4` | Enable support for v0.4 of the [`chrono`](docs.rs/chrono/0.4) crate in the public API of the re-exported `bson` crate. | n/a | no |
7373

7474
## Example Usage
75-
Below are simple examples of using the driver. For more specific examples and the API reference, see the driver's [docs.rs page](https://docs.rs/mongodb/2.0.0-beta.3).
75+
Below are simple examples of using the driver. For more specific examples and the API reference, see the driver's [docs.rs page](https://docs.rs/mongodb/latest).
7676

7777
### Using the async API
7878
#### Connecting to a MongoDB deployment
@@ -122,7 +122,7 @@ let docs = vec![
122122
collection.insert_many(docs, None).await?;
123123
```
124124

125-
A [`Collection`](https://docs.rs/mongodb/2.0.0-beta.3/mongodb/struct.Collection.html) can be parameterized with any type that implements the `Serialize` and `Deserialize` traits from the [`serde`](https://serde.rs/) crate, not just `Document`:
125+
A [`Collection`](https://docs.rs/mongodb/latest/mongodb/struct.Collection.html) can be parameterized with any type that implements the `Serialize` and `Deserialize` traits from the [`serde`](https://serde.rs/) crate, not just `Document`:
126126

127127
``` toml
128128
# In Cargo.toml, add the following dependency.
@@ -159,7 +159,7 @@ typed_collection.insert_many(books, None).await?;
159159
```
160160

161161
#### Finding documents in a collection
162-
Results from queries are generally returned via [`Cursor`](https://docs.rs/mongodb/2.0.0-beta.3/mongodb/struct.Cursor.html), a struct which streams the results back from the server as requested. The [`Cursor`](https://docs.rs/mongodb/2.0.0-beta.3/mongodb/struct.Cursor.html) type implements the [`Stream`](https://docs.rs/futures/latest/futures/stream/index.html) trait from the [`futures`](https://crates.io/crates/futures) crate, and in order to access its streaming functionality you need to import at least one of the [`StreamExt`](https://docs.rs/futures/latest/futures/stream/trait.StreamExt.html) or [`TryStreamExt`](https://docs.rs/futures/latest/futures/stream/trait.TryStreamExt.html) traits.
162+
Results from queries are generally returned via [`Cursor`](https://docs.rs/mongodb/latest/mongodb/struct.Cursor.html), a struct which streams the results back from the server as requested. The [`Cursor`](https://docs.rs/mongodb/latest/mongodb/struct.Cursor.html) type implements the [`Stream`](https://docs.rs/futures/latest/futures/stream/index.html) trait from the [`futures`](https://crates.io/crates/futures) crate, and in order to access its streaming functionality you need to import at least one of the [`StreamExt`](https://docs.rs/futures/latest/futures/stream/trait.StreamExt.html) or [`TryStreamExt`](https://docs.rs/futures/latest/futures/stream/trait.TryStreamExt.html) traits.
163163

164164
``` toml
165165
# In Cargo.toml, add the following dependency.

src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//! your application, simply add it to your project's `Cargo.toml`.
1717
//! ```toml
1818
//! [dependencies]
19-
//! mongodb = "2.0.0-beta.3"
19+
//! mongodb = "2.0.0"
2020
//! ```
2121
//!
2222
//! ### Configuring the async runtime
@@ -30,7 +30,7 @@
3030
//! add the following to your `Cargo.toml`:
3131
//! ```toml
3232
//! [dependencies.mongodb]
33-
//! version = "2.0.0-beta.3"
33+
//! version = "2.0.0"
3434
//! default-features = false
3535
//! features = ["async-std-runtime"]
3636
//! ```
@@ -40,7 +40,7 @@
4040
//! `Cargo.toml`:
4141
//! ```toml
4242
//! [dependencies.mongodb]
43-
//! version = "2.0.0-beta.3"
43+
//! version = "2.0.0"
4444
//! default-features = false
4545
//! features = ["sync"]
4646
//! ```
@@ -56,7 +56,7 @@
5656
//! | `async-std-runtime` | Enable support for the `async-std` runtime | `async-std` 1.0 | no |
5757
//! | `sync` | Expose the synchronous API (`mongodb::sync`). This flag cannot be used in conjunction with either of the async runtime feature flags. | `async-std` 1.0 | no |
5858
//! | `aws-auth` | Enable support for the MONGODB-AWS authentication mechanism. | `reqwest` 0.11 | no |
59-
//! | `bson-uuid-0_8` | Enable support for v0.8 of the [`uuid`](docs.rs/uuid/0.8) crate in the public API of the re-exported `bson` crate. | `uuid` 0.8 | no |
59+
//! | `bson-uuid-0_8` | Enable support for v0.8 of the [`uuid`](docs.rs/uuid/0.8) crate in the public API of the re-exported `bson` crate. | n/a | no |
6060
//! | `bson-chrono-0_4` | Enable support for v0.4 of the [`chrono`](docs.rs/chrono/0.4) crate in the public API of the re-exported `bson` crate. | n/a | no |
6161
//!
6262
//! # Example Usage
@@ -293,7 +293,7 @@
293293
)]
294294
#![cfg_attr(docsrs, feature(doc_cfg))]
295295
#![cfg_attr(test, type_length_limit = "80000000")]
296-
#![doc(html_root_url = "https://docs.rs/mongodb/2.0.0-beta.3")]
296+
#![doc(html_root_url = "https://docs.rs/mongodb/2.0.0")]
297297

298298
#[cfg(all(feature = "aws-auth", feature = "async-std-runtime"))]
299299
compile_error!("The `aws-auth` feature flag is only supported on the tokio runtime.");

0 commit comments

Comments
 (0)