Skip to content

v3.3.0

Latest
Compare
Choose a tag to compare
@abr-egn abr-egn released this 03 Sep 20:03
· 2 commits to main since this release
v3.3.0
97d7aab

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

Highlighted Changes

Compatibility With bson 3.0

This version of the driver provides the bson-3 feature, which allows opting in to use the 3.0 version of the bson crate where the driver API exposes those types. Any usage without that feature (e.g. all existing projects) will continue to use the 2.x version. See the bson 3.0 migration guide for more information.

Improved Convenient Transaction API

With the stabilization of async closures, the convenient transaction API (StartTransaction::and_run) has been deprecated in favor of StartTransaction::and_run2, which provides the same functionality but without needing to box the closure or pass a distinct data argument.

GSSAPI Authentication Support

The driver now supports the use of GSSAPI for authentication of driver connections on Linux, MacOS, and Windows.

Minimum Server Version Increase

The minimum server version supported by the driver is now 4.2; support for 4.0 was deprecated in driver version 3.2.0 and has now been removed.

Full Release Notes

Impactful changes are listed below; for a complete list of changes see this GitHub query.

New Features

Improvements

Bugfixes

  • HELP-70689 Use openssl cert parsing when openssl-tls is enabled (#1302)
  • HELP-68823 Fix invalid_me comparison and normalize host strings (#1319)
  • RUST-2191 Fix type propagation for Aggregate::session (#1353)
  • RUST-2131 Fix bulk write cursor iteration on load balanced topologies (#1358)
  • RUST-2204 Enforce size limits on outgoing messages (#1369)
  • RUST-2074 Fix retryability bug, add disabled test (#1427)
  • RUST-2184 Accept any BSON number for CreateCollectionOptions::size (#1460)
  • Always use "admin" target_db during handshake (#1463) (thanks @krinart!)