Skip to content

v1.2.0

Compare
Choose a tag to compare
@isabelatkinson isabelatkinson released this 12 Feb 23:37
0fc08b7

Description

The MongoDB Rust Driver team is pleased to announce the v1.2.0 release of the BSON library.

Release Notes

Serde Integration Improvements

This release contains several improvements to the library's integration with Serde.

  • RUST-506 introduces serde_helpers.rs which contains severals functions and modules to assist in customizing serialization and deserialization of user data types. These functions and modules are compatible with the Serde serialize_with and Serde with field attributes, respectively.
  • RUST-507 implements automatic deserialization of BSON number types into unsigned integer types.
  • RUST-602 implements automatic deserialization of the ObjectId type from a hexadecimal string.

Other New Features

  • RUST-648 Reintroduce Document decoding with lossy UTF-8 encoding
  • RUST-589 Implement FromStr for ObjectId
  • RUST-364 Cache unique process value for oids
  • RUST-554 Support parsing $uuid as extended JSON representation for subtype 4 binary