Skip to content

Commit 4153a9f

Browse files
authored
minor: update migration guide with bson-* feature removal (#1154)
1 parent 9dfcd67 commit 4153a9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

migration-3.0.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ let options = ClientOptions::builder()
115115
## Future-proof Features
116116
Starting in 3.0, if the Rust driver is compiled with `no-default-features` it will require the use of a `compat` feature; this provides the flexibility to make features optional in future versions of the driver. Lack of this had prevented `rustls` and `dns-resolution` from becoming optional in 2.x; they are now optional in 3.0.
117117

118-
In addition, we have removed the various `bson-*` features from the driver, as those can be selected by including `bson` as a direct dependency.
119-
120118
## ReadConcern / WriteConcern Helpers
121119
The Rust driver provides convenience helpers for constructing commonly used read or write concerns (e.g. "majority"). In 2.x, these were an overlapping mix of constants and methods (`ReadConcern::MAJORITY` and `ReadConcern::majority()`). In 3.0, these are only provided as methods.
122120

@@ -137,3 +135,6 @@ In 2.x, most but not all option struct builders would allow value conversion via
137135

138136
## `comment_bson` is now `comment`
139137
In 2.x, the `AggregateOptions`, `FindOptions`, and `FindOneOptions` structs had both `comment_bson` and legacy `comment` fields. In 3.x, `comment_bson` has been renamed to `comment`, replacing the legacy field.
138+
139+
## `bson-*` features removed
140+
The 2.x driver provided features like `bson-chrono-0_4` that did not add any additional driver functionality but would enable the corresponding feature of the `bson` dependency. These have been removed from 3.x; if your project needs specific `bson` features, you should list it as a top-level dependency with those features enabled.

0 commit comments

Comments
 (0)