Skip to content

v2.5.0

Compare
Choose a tag to compare
@abr-egn abr-egn released this 19 Apr 19:12
· 326 commits to main since this release

The MongoDB Rust driver team is pleased to announce the v2.5.0 release of the mongodb crate, now available for download from crates.io.

Highlighted Changes

In-Use Encryption: Automatically Create Keys

This release adds the ClientEncryption::create_encrypted_collection helper method, which will automatically create encryption keys as needed when creating a collection with the encrypted_fields option.

Convenient Transactions

This release adds the ClientSession::with_transaction helper method, which will handle automatically creating, retrying, and committing or aborting a transaction.

Included Changes

Below are a selected list of changes with user impact; for a full list of changes see this GitHub query.

New Features

Improvements

  • RUST-1069 Defer implicit session check out until after connection check out (#811)
  • RUST-1582 Expose collection.client() as public (#822) (Thanks LuisOsta!)
  • RUST-1503 Test csfle against older server versions (#832)
  • RUST-1607: allow uuidRepresentation in connection string (#838) (Thanks terakilobyte!)
  • RUST-1501 Collect FaaS platform metadata (#844)
  • RUST-1585 Do not perform server selection to determine sessions support (#854)

Bugfixes