The MongoDB Rust driver team is pleased to announce the v2.9.0 release of the bson
crate.
Highlighted Changes
This release adds several externally contributed improvements!
- A new
RawIter
type that iterates over elements in a document without deserializing them, - An improvement to the
doc
andbson
macros (and theirraw
counterparts) that allows using types that implementInto<Bson>
orInto<RawBson>
, - An impl of
From<&mut T>
forBson
for types that implementInto<Bson>
, - A smaller dependency tree thanks to updating the indexmap crate,
- And a fix for the
serde_with
3.x support for theUuid
type.
Full Release Notes
New Features
- RUST-1815 provide lazy iterator implementation (thanks @tychoish!)
- RUST-1716 Add BSON Binary Data subtype Sensitive (#454)
Improvements
- RUST-1822 Allow using the {,raw}{bson,doc} with types implementing Into<{,Raw}Bson> (#450) (thanks @tyilo!)
- RUST-1825 Implement From<&mut T> for Bson (#452) (thanks @tyilo!)
- RUST-1814 minor: bump indexmap to 2.1.0 (#448) (thanks @froydnj!)