Skip to content

v2.12.0

Compare
Choose a tag to compare
@abr-egn abr-egn released this 11 Sep 17:38
· 38 commits to main since this release
8e0fb3b

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 and Eq for the Bson family of types
  • ObjectId::from_parts, allowing direct construction of an ObjectId from its component values
  • Helpers for serializing Option<chrono::DateTime<_>> as Option<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

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!)