v2.5.0
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
- RUST-1587 Implement server selection tracing events (#805)
- RUST-1314 Support on-demand AWS credentials for in-use encryption (#831)
- RUST-107 Convenient transactions (#849)
- RUST-1411 Add create_encrypted_collection helper (#853)
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)