Skip to content

Commit fb18ed2

Browse files
committed
release v2.0.0
1 parent 0608c84 commit fb18ed2

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bson"
3-
version = "2.0.0-beta.3"
3+
version = "2.0.0"
44
authors = [
55
"Y. T. Chung <[email protected]>",
66
"Kevin Yeh <[email protected]>",

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ This crate is available on [crates.io](https://crates.io/crates/bson). To use it
3636

3737
```toml
3838
[dependencies]
39-
bson = "2.0.0-beta.3"
39+
bson = "2.0.0"
4040
```
4141

4242
Note that if you are using `bson` through the `mongodb` crate, you do not need to specify it in your
4343
`Cargo.toml`, since the `mongodb` crate already re-exports it.
4444

4545
#### Feature Flags
4646

47-
| Feature | Description | Extra dependencies | Default |
48-
|:-------------|:-----------------------------------------------------------------------------------------------|:-------------------|:--------|
49-
| `chrono-0_4` | Enable support for v0.4 of the [`chrono`](docs.rs/chrono/0.4) crate in the public API. | n/a | no |
50-
| `uuid-0_8` | Enable support for v0.8 of the [`uuid`](docs.rs/uuid/0.8) crate in the public API. | `uuid` 0.8 | no |
47+
| Feature | Description | Extra dependencies | Default |
48+
|:-------------|:---------------------------------------------------------------------------------------|:-------------------|:--------|
49+
| `chrono-0_4` | Enable support for v0.4 of the [`chrono`](docs.rs/chrono/0.4) crate in the public API. | n/a | no |
50+
| `uuid-0_8` | Enable support for v0.8 of the [`uuid`](docs.rs/uuid/0.8) crate in the public API. | n/a | no |
5151

5252
## Overview of the BSON Format
5353

@@ -208,14 +208,14 @@ that is also less error prone.
208208
### Working with datetimes
209209

210210
The BSON format includes a datetime type, which is modeled in this crate by the
211-
[`bson::DateTime`](https://docs.rs/bson/2.0.0-beta.3/bson/struct.DateTime.html) struct, and the
211+
[`bson::DateTime`](https://docs.rs/bson/latest/bson/struct.DateTime.html) struct, and the
212212
`Serialize` and `Deserialize` implementations for this struct produce and parse BSON datetimes when
213213
serializing to or deserializing from BSON. The popular crate [`chrono`](https://docs.rs/chrono) also
214214
provides a `DateTime` type, but its `Serialize` and `Deserialize` implementations operate on strings
215215
instead, so when using it with BSON, the BSON datetime type is not used. To work around this, the
216216
`chrono-0_4` feature flag can be enabled. This flag exposes a number of convenient conversions
217217
between `bson::DateTime` and `chrono::DateTime`, including the
218-
[`chrono_datetime_as_bson_datetime`](https://docs.rs/bson/2.0.0-beta.3/bson/serde_helpers/chrono_datetime_as_bson_datetime/index.html)
218+
[`chrono_datetime_as_bson_datetime`](https://docs.rs/bson/latest/bson/serde_helpers/chrono_datetime_as_bson_datetime/index.html)
219219
serde helper, which can be used to (de)serialize `chrono::DateTime`s to/from BSON datetimes, and the
220220
`From<chrono::DateTime>` implementation for `Bson`, which allows `chrono::DateTime` values to be
221221
used in the `doc!` and `bson!` macros.
@@ -254,7 +254,7 @@ provide a UUID type (`Uuid`), though its `Serialize` and `Deserialize` implement
254254
strings, so when using it with BSON, the BSON binary type will not be used. To facilitate the
255255
conversion between `Uuid` values and BSON binary values, the `uuid-0_8` feature flag can be
256256
enabled. This flag exposes a number of convenient conversions from `Uuid`, including the
257-
[`uuid_as_binary`](https://docs.rs/bson/2.0.0-beta.3/bson/serde_helpers/uuid_as_binary/index.html)
257+
[`uuid_as_binary`](https://docs.rs/bson/latest/bson/serde_helpers/uuid_as_binary/index.html)
258258
serde helper, which can be used to (de)serialize `Uuid`s to/from BSON binaries with the UUID
259259
subtype, and the `From<Uuid>` implementation for `Bson`, which allows `Uuid` values to be used in
260260
the `doc!` and `bson!` macros.

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@
5151
//!
5252
//! ```toml
5353
//! [dependencies]
54-
//! bson = "2.0.0-beta.3"
54+
//! bson = "2.0.0"
5555
//! ```
5656
//!
5757
//! Note that if you are using `bson` through the `mongodb` crate, you do not need to specify it in
5858
//! your `Cargo.toml`, since the `mongodb` crate already re-exports it.
5959
//!
6060
//! #### Feature Flags
6161
//!
62-
//! | Feature | Description | Extra dependencies | Default |
63-
//! |:-------------|:-----------------------------------------------------------------------------------------------|:-------------------|:--------|
64-
//! | `chrono-0_4` | Enable support for v0.4 of the [`chrono`](docs.rs/chrono/0.4) crate in the public API. | n/a | no |
65-
//! | `uuid-0_8` | Enable support for v0.8 of the [`uuid`](docs.rs/uuid/0.8) crate in the public API. | `uuid` 0.8 | no |
62+
//! | Feature | Description | Extra dependencies | Default |
63+
//! |:-------------|:---------------------------------------------------------------------------------------|:-------------------|:--------|
64+
//! | `chrono-0_4` | Enable support for v0.4 of the [`chrono`](docs.rs/chrono/0.4) crate in the public API. | n/a | no |
65+
//! | `uuid-0_8` | Enable support for v0.8 of the [`uuid`](docs.rs/uuid/0.8) crate in the public API. | n/a | no |
6666
//!
6767
//! ## BSON values
6868
//!
@@ -300,7 +300,7 @@
300300
//! it will only happen in a minor or major version release.
301301
302302
#![allow(clippy::cognitive_complexity)]
303-
#![doc(html_root_url = "https://docs.rs/bson/2.0.0-beta.3")]
303+
#![doc(html_root_url = "https://docs.rs/bson/2.0.0")]
304304
#![cfg_attr(docsrs, feature(doc_cfg))]
305305

306306
#[doc(inline)]

0 commit comments

Comments
 (0)