v2.12.0
The MongoDB Rust driver team is pleased to announce the v2.12.0 release of the bson
crate.
Highlighted Changes
This release was largely driven by external contributions!
- An optional implementation of
Hash
andEq
for theBson
family of types ObjectId::from_parts
, allowing direct construction of anObjectId
from its component values- Helpers for serializing
Option<chrono::DateTime<_>>
asOption<bson::DateTime>
- A fix for a panic when parsing specific malformed input data into a
Decimal128
We've also added optional (off by default) integration with the serde_path_to_error
crate, which
provides paths to the precise point of failure for deserialization of nested data structures.
Full Release Notes
New Features
- RUST-2027 Impl Hash/Eq for BSON (thanks @@NineLord!)
- RUST-2017 Allow constructing an ObjectId from its parts (thanks @tyilo!)
- RUST-1987 Support serializing
Option<chrono::DateTime<_>>
asOption<bson::DateTime>
(thanks @lazureykis!) - RUST-1874 Add optional integration with serde_path_to_error
Improvements
- RUST-1773 Merge duplicate extjson map parsing between OwnedOrBorrowedRawBsonVisitor and SeededVisitor
Bugfixes
- RUST-2028 Fix Decimal128 panic when parsing strings w/o a char boundary at idx 34 (thanks @arthurprs!)