cargo mongodb 3.2.0
v3.2.0

2 days ago

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

Highlighted Changes

Stable API for In-Use Encryption

The API for in-use encryption is now stable and has the same backwards compatibility guarantees as the rest of the driver. To reflect this, the feature is now named in-use-encryption; in-use-encryption-unstable will continue to be provided as a compatibility alias. Please note that this is a policy change only and that the API itself has not changed from the previous release.

Improved documentation for option setters

When looking at the rustdoc for methods with chainable setters for options (e.g. Collection::find), those setters are listed directly in the rustdoc for the method rather than only being visible in the rustdoc for the type of the returned future.

Upcoming Change: EOL for Server Version 4.0

In the next minor version release (3.3.0), the Rust driver will be dropping support for connecting to mongodb server version 4.0. As of that release, the minimum supported server version will be 4.2.

Full Release Notes

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

New Features

Improvements

  • RUST-1795 Remove unstable from in-use encryption (#1191)
  • track task spawn location for tokio instrumentation (#1201) (thanks @hds!)
  • RUST-1437 Send endSessions on client shutdown (#1216)
  • RUST-229 Parse IPv6 addresses in the connection string (#1242)
  • RUST-1222 Cancel in-progress operations when SDAM heartbeats time out (#1249)
  • RUST-2116: bump msrv to 1.71.1 (#1265)
  • RUST-2103 Better documentation for action options (various)
  • chore: upgrade reqwest to v0.12 and hyper to v1 (#1278) (thanks @zitsen!)
  • Make EncryptedClientBuilder publicly accessible (#1282)
  • RUST-1894 Retry KMS requests on transient errors (#1281)

Bugfixes

  • RUST-2037 Fix logic for populating bulk write partial result (#1212)
  • RUST-2054 Fix quoting when constructing index names (#1226)
  • Fix read_document_bytes unchecked conversion bug (#1274)
  • Disallow setting query_type for encrypt_expression (#1275)

Don't miss a new mongodb release

NewReleases is sending notifications on new releases.