@@ -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
4242Note 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
210210The 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
213213serializing to or deserializing from BSON. The popular crate [ ` chrono ` ] ( https://docs.rs/chrono ) also
214214provides a ` DateTime ` type, but its ` Serialize ` and ` Deserialize ` implementations operate on strings
215215instead, 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
217217between ` 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 )
219219serde 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
221221used in the ` doc! ` and ` bson! ` macros.
@@ -254,7 +254,7 @@ provide a UUID type (`Uuid`), though its `Serialize` and `Deserialize` implement
254254strings, so when using it with BSON, the BSON binary type will not be used. To facilitate the
255255conversion between ` Uuid ` values and BSON binary values, the ` uuid-0_8 ` feature flag can be
256256enabled. 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 )
258258serde helper, which can be used to (de)serialize ` Uuid ` s to/from BSON binaries with the UUID
259259subtype, and the ` From<Uuid> ` implementation for ` Bson ` , which allows ` Uuid ` values to be used in
260260the ` doc! ` and ` bson! ` macros.
0 commit comments