The MongoDB Rust driver team is pleased to announce the v2.14.0 release of the bson
crate.
Highlighted Changes
This release adds:
- the
bson::binary::Vector
type, providing efficient support for including
densely packed arrays of numeric values in BSON documents, - functions to
DateTime
to add milliseconds andDuration
, Index
impls forBson
andDocument
, allowing convenient shorthand element lookup.
This release also updates the MSRV to 1.81.
Full Release Notes
New Features
- RUST-622 Add document square bracket indexing (#503)
- Add functions to DateTime to add milliseconds and Duration (#506) (thanks @tyilo!)
- RUST-2003 Binary vector subtype support (#513)
Improvements
- test(fuzz): read -> write bson (#500) (thanks @LeoDog896!)
- RUST-2019 Respect pretty printing flag for Document and Bson (#501)
- minor: bump clippy version to 1.83.0 (#509)
- New PR with Devin's complete changes (#507)
- RUST-2149 Sync additional vector tests (#514)
- Update base64 dependency (#515) (thanks @barvirm!)
- RUST-2158 update edition & rand crate (#516) (thanks @BiswajitThakur!)
- feat(extjson): parse legacy {"$date": <ms since epoch>} (#519) (thanks @xiangjinwu!)
- RUST-1375 Update bson crate MSRV policy (#520)