Skip to content

Releases: mongodb/mongo-rust-driver

v3.3.0

03 Sep 20:03
v3.3.0
97d7aab
Compare
Choose a tag to compare

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!)

v3.2.5

22 Aug 08:37
v3.2.5
0b49612
Compare
Choose a tag to compare

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

This release fixes a bug that caused the driver to allow invalid TLS certificates when the URI option "tlsInsecure=false" was included in the connection string.

Full Release Notes

Bugfixes

v3.2.4

30 Jun 19:26
v3.2.4
25a52cf
Compare
Choose a tag to compare

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

Full Release Notes

Improvements

Bugfixes

v3.2.3

19 Mar 19:23
34653fa
Compare
Choose a tag to compare

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

Full Release Notes

Bugfixes

  • RUST-2179 Ignore whether nodes are data-bearing when directConnection is true (#1334)

v3.2.2

06 Mar 20:05
6d8cf54
Compare
Choose a tag to compare

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

Full Release Notes

Bugfixes

v3.2.1

04 Feb 22:11
Compare
Choose a tag to compare

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

Full Release Notes

Bug fix

  • RUST-2146 Fix compilation when no default features are enabled (#1292)

Improvement

v3.2.0

16 Jan 21:33
974465a
Compare
Choose a tag to compare

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)

v3.1.1

12 Dec 20:12
df84bf0
Compare
Choose a tag to compare

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

Full Release Notes

Improvements

v3.1.0

30 Aug 15:41
Compare
Choose a tag to compare

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

This release provides compatibility with MongoDB 8.0, including support for a number of new in-use encryption features.

Full Release Notes

Features

Improvements

Tasks

  • RUST-1821 Increase minimum compatible MongoDB server version to 4.0 (#1151)
  • RUST-1981 Increase maximum compatible MongoDB server version to 8.0 (#1175)

v3.0.1

09 Jul 18:05
1a725f9
Compare
Choose a tag to compare

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

This release fixes two bugs:

  • Aggregations with both explicit sessions and custom types wouldn't compile, and
  • Collection::watch didn't use the Collection's type parameter

Full Release Notes

Bugfixes