Skip to content

Commit 6bd7b39

Browse files
committed
release v2.0.0-beta.3
1 parent 5d09bf4 commit 6bd7b39

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
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.2"
11+
version = "2.0.0-beta.3"
1212

1313
exclude = [
1414
"etc/**",
@@ -38,7 +38,7 @@ bson-uuid-0_8 = ["bson/uuid-0_8"]
3838
async-trait = "0.1.42"
3939
base64 = "0.13.0"
4040
bitflags = "1.1.0"
41-
bson = { git = "https://github.com/mongodb/bson-rust" }
41+
bson = "2.0.0-beta.3"
4242
chrono = "0.4.7"
4343
derivative = "2.1.1"
4444
futures-core = "0.3.14"

README.md

Lines changed: 7 additions & 7 deletions
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.2) 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/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.
55

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

4040
#### Configuring the async runtime
@@ -43,7 +43,7 @@ The driver supports both of the most popular async runtime crates, namely [`toki
4343
For example, to instruct the driver to work with [`async-std`](https://crates.io/crates/async-std), add the following to your `Cargo.toml`:
4444
```toml
4545
[dependencies.mongodb]
46-
version = "2.0.0-beta.2"
46+
version = "2.0.0-beta.3"
4747
default-features = false
4848
features = ["async-std-runtime"]
4949
```
@@ -52,14 +52,14 @@ features = ["async-std-runtime"]
5252
The driver also provides a blocking sync API. To enable this, add the `"sync"` feature to your `Cargo.toml`:
5353
```toml
5454
[dependencies.mongodb]
55-
version = "2.0.0-beta.2"
55+
version = "2.0.0-beta.3"
5656
default-features = false
5757
features = ["sync"]
5858
```
5959
**Note:** if the sync API is enabled, the async-specific types will be privatized (e.g. `mongodb::Client`). The sync-specific types can be imported from `mongodb::sync` (e.g. `mongodb::sync::Client`).
6060

6161
## Example Usage
62-
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.2).
62+
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).
6363

6464
### Using the async API
6565
#### Connecting to a MongoDB deployment
@@ -109,7 +109,7 @@ let docs = vec![
109109
collection.insert_many(docs, None).await?;
110110
```
111111

112-
A [`Collection`](https://docs.rs/mongodb/2.0.0-beta.2/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`:
112+
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`:
113113

114114
``` toml
115115
# In Cargo.toml, add the following dependency.
@@ -146,7 +146,7 @@ typed_collection.insert_many(books, None).await?;
146146
```
147147

148148
#### Finding documents in a collection
149-
Results from queries are generally returned via [`Cursor`](https://docs.rs/mongodb/2.0.0-beta.2/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.2/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.
149+
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.
150150

151151
``` toml
152152
# In Cargo.toml, add the following dependency.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
)]
8383
#![cfg_attr(docsrs, feature(doc_cfg))]
8484
#![cfg_attr(test, type_length_limit = "80000000")]
85-
#![doc(html_root_url = "https://docs.rs/mongodb/2.0.0-beta.2")]
85+
#![doc(html_root_url = "https://docs.rs/mongodb/2.0.0-beta.3")]
8686

8787
macro_rules! define_if_single_runtime_enabled {
8888
( $( $def:item )+ ) => {

0 commit comments

Comments
 (0)