Skip to content

Commit 08e2301

Browse files
committed
release v2.0.0-beta.2
1 parent d8eda15 commit 08e2301

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Cargo.toml

+2-2
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.1"
11+
version = "2.0.0-beta.2"
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 = "2.0.0-beta.1"
41+
bson = "2.0.0-beta.2"
4242
chrono = "0.4.7"
4343
derivative = "2.1.1"
4444
futures-core = "0.3.14"

README.md

+7-7
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.1) 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.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.
55

66
## Index
77
- [Installation](#installation)
@@ -38,7 +38,7 @@ issue. For more information, see https://github.com/rust-lang/rust/issues/75992.
3838
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`.
3939
```toml
4040
[dependencies]
41-
mongodb = "2.0.0-beta.1"
41+
mongodb = "2.0.0-beta.2"
4242
```
4343

4444
#### Configuring the async runtime
@@ -47,7 +47,7 @@ The driver supports both of the most popular async runtime crates, namely [`toki
4747
For example, to instruct the driver to work with [`async-std`](https://crates.io/crates/async-std), add the following to your `Cargo.toml`:
4848
```toml
4949
[dependencies.mongodb]
50-
version = "2.0.0-beta.1"
50+
version = "2.0.0-beta.2"
5151
default-features = false
5252
features = ["async-std-runtime"]
5353
```
@@ -56,14 +56,14 @@ features = ["async-std-runtime"]
5656
The driver also provides a blocking sync API. To enable this, add the `"sync"` feature to your `Cargo.toml`:
5757
```toml
5858
[dependencies.mongodb]
59-
version = "2.0.0-beta.1"
59+
version = "2.0.0-beta.2"
6060
default-features = false
6161
features = ["sync"]
6262
```
6363
**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`).
6464

6565
## Example Usage
66-
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.1).
66+
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).
6767

6868
### Using the async API
6969
#### Connecting to a MongoDB deployment
@@ -113,7 +113,7 @@ let docs = vec![
113113
collection.insert_many(docs, None).await?;
114114
```
115115

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

118118
``` toml
119119
# In Cargo.toml, add the following dependency.
@@ -150,7 +150,7 @@ typed_collection.insert_many(books, None).await?;
150150
```
151151

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

155155
``` toml
156156
# In Cargo.toml, add the following dependency.

src/lib.rs

+1-1
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.1")]
85+
#![doc(html_root_url = "https://docs.rs/mongodb/2.0.0-beta.2")]
8686

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

0 commit comments

Comments
 (0)