Skip to content

Releases: mongodb/mongo-rust-driver

v3.6.0

20 Apr 17:34
v3.6.0
0711b10

Choose a tag to compare

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

Highlighted Changes

Client Backpressure

With 3.6.0, the client has a variety of changes to improve behavior when connected to overloaded servers, most notably retrying against a different server (if available). For more details on server load-shedding, see the documentation for Intelligent Workload Management.

Full Release Notes

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

Improvements

  • RUST-2268 Add jitter to convenient transaction retries (#1588)
  • RUST-2267 Avoid clearing connection pool when server connection rate limiter triggers (#1584)
  • RUST-2324 Implement Cursor on top of RawBatchCursor (#1620)
  • RUST-2273 Exponential backoff and jitter in retry loops (#1626)
  • RUST-2325 Use raw batch iterator for gridfs downloads (#1632)
  • RUST-2385 Finalize client backpressure changes (#1654)
  • minor: bump MSRV to 1.85 (#1670)
  • Add feature flag to use aws-lc-rs instead of ring as the rustls crypto provider (#1662) (thanks @TimTheBig!)

Bugfixes

v3.5.2

18 Mar 20:11
v3.5.2
55ba2b5

Choose a tag to compare

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

Full Release Notes

Bugfixes

v3.5.1

03 Feb 10:42
v3.5.1
7186738

Choose a tag to compare

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

This release removes a check added in 3.4.0 that would reject metadata containing the | character.

Full Release Notes

Bugfixes

v3.5.0

14 Jan 16:05
v3.5.0
f8e0886

Choose a tag to compare

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

Highlighted Changes

SOCKS5 Proxy Support

3.5.0 includes the optional socks5-proxy feature, which enables connecting to the database via a SOCKS5 proxy. This can be configured either with the proxyHost, proxyPort, proxyUsername, and proxyPassword connection string options or the ClientOptions::socks5_proxy field.

Raw Batch Cursors

This release adds support for iterating over the raw document batches returned by the server for cursors rather than individual deserialized values. For some applications, this can enable significant performance improvements; see the module documentation for more details.

AWS Authentication Property Deprecation

Specifying AWS authentication properties via the username and password in URI strings and the AWS_SESSION_TOKEN field of the auth mechanism properties doc is deprecated; using these is almost never the correct setup and can lead to the driver losing connectivity. This functionality will be removed in the next major version of the driver.

Full Release Notes

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

New Features

  • RUST-1054 SOCKS5 Proxy Support (#1550)
  • RUST-2300 Provide a raw batched cursor mode for all cursor-returning actions

Improvements

Bugfixes

v3.4.1

21 Nov 16:05
v3.4.1
8a5598b

Choose a tag to compare

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

Highlighted Changes

Atlas Search Helpers

The driver now includes helpers for building Atlas Search aggregation pipelines. See the documentation for more details and examples.

OpenTelemetry Support

The driver now supports tracing database commands and driver operations for OpenTelemetry.

Text Indexes for Queryable Encryption

The driver now supports text indexes for both automatic and explicit encryption. Note that this feature is in preview and should only be used in experimental workloads. The text-indexes-unstable feature flag must be enabled to use text indexes. The GA version of this feature may not be backwards-compatible with the preview version.

Dependency Improvements

Thank you to @tottoto and @FalkWoldmann for their several contributions to update and refine our dependencies!

Full Release Notes

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

New Features

Improvements

Bug Fixes

  • TUNE-449 Fix a potential duration overflow (#1530)

Note

Version 3.4.0 of the driver was skipped due to an issue in the release process.

v3.3.0

03 Sep 20:03
v3.3.0
97d7aab

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

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

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

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

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