NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #3064 most downloaded on crates.io
Internal macros for the mongodb crate
Last release 27 days ago
10 Sep 2026
Ships fairly regularly
a new release about every 6 weeks
Some releases are documented
notes for 12 of 24 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
25 releases · first in 2024
Important This is a security patch release for CVE-2026-88024 . Upgrading is recommended for all users.
The MongoDB Rust driver team is pleased to announce the v3.9.1 release of the mongodb crate, now available for download from crates.io.
Important
This is a security patch release for CVE-2026-88024. Upgrading is recommended for all users.
This release fixes a bug that would allow certain inputs to delete all files in a GridFS bucket.
The MongoDB Rust driver team is pleased to announce the v3.9.0 release of the mongodb crate, now available for download from crates.io .
The MongoDB Rust driver team is pleased to announce the v3.9.0 release of the mongodb crate, now available for download from crates.io.
This release adds support for the new baseBackoffMS server error field. The driver now uses the value for baseBackoffMS reported by the server in its retry backoff calculations. This new feature is part of MongoDB's Intelligent Workload Management (IWM) and is available on MongoDB Atlas server versions 9.0+.
One column per month.
Important This is a security patch release for CVE-2026-81526 . Upgrading is recommended for all users.
The MongoDB Rust driver team is pleased to announce the v3.8.2 release of the mongodb crate, now available for download from crates.io.
Important
This is a security patch release for CVE-2026-81526. Upgrading is recommended for all users.
This release fixes a bug that would allow Client::bulk_write to write to a different database than the one specified in a write model's namespace.
The MongoDB Rust driver team is pleased to announce the v3.8.1 release of the mongodb crate, now available for download from crates.io .
The MongoDB Rust driver team is pleased to announce the v3.8.1 release of the mongodb crate, now available for download from crates.io.
This release fixes two bugs: a potential infinite loop in change streams, and the find_one_and_* methods not reporting errors in some circumstances.
Algorithm::TextPreview is deprecated in favor of Algorithm::String .
The MongoDB Rust driver team is pleased to announce the v3.8.0 release of the mongodb crate, now available for download from crates.io.
The string API for in-use encryption (previously named the text API) is now stable and GA! This brings with it the following changes:
text-indexes-unstable feature is no longer required to enable this API. The feature still exists for backwards compatibility but does nothing.TextOptions struct is now StringOptions.Algorithm::TextPreview is deprecated in favor of Algorithm::String."prefixPreview", "suffixPreview", and "substringPreview" are deprecated in favor of "prefix", "suffix", and "substring" respectively.The GA API requires mongodb server version 9.0. The preview API can continue to be used with pre-9.0 server versions.
As of this release, connecting to server version 4.2 is deprecated. Support for 4.2 will be removed in the 3.9.0 release.
MONGODB-AWS explicit authentication property deprecationThe use of explicit username, password, or the "AWS_SESSION_TOKEN" property with the MONGODB-AWS auth mechanism is deprecated, and will emit warnings when debug assertions are enabled. Support for these will be removed in version 4.0 of the driver.
A long-standing bug in the hickory-resolver case when running on Windows caused performance degredation when using a mongodb+srv connection string. Happily, this bug is now fixed, so users who previously used our recommended workaround of a custom DNS configuration on Windows can now remove that workaround.
Impactful changes are listed below; for a complete list of changes see this GitHub query.
The MongoDB Rust driver team is pleased to announce the v3.7.0 release of the mongodb crate, now available for download from crates.io .
The MongoDB Rust driver team is pleased to announce the v3.7.0 release of the mongodb crate, now available for download from crates.io.
This release updates the minimum supported rust compiler version to 1.88.
Due to a security advisory, the version of hickory used internally has been updated to 0.26. This should have no user-visible behavior impact.
Client::shutdown improvementsThe implementation of shutdown's wait for server resource cleanup and background task termination has been improved to be more consistent and cover more cases.
Impactful changes are listed below; for a complete list of changes see this GitHub query.
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 .
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.
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). These features will be functional with MongoDB Atlas Server Version 9.0 and above.
Impactful changes are listed below; for a complete list of changes see this GitHub query.
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 .
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 .
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.
AWS Authentication Property Deprecation
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.
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.
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.
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.
Impactful changes are listed below; for a complete list of changes see this GitHub query.
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.
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.
The driver now includes helpers for building Atlas Search aggregation pipelines. See the documentation for more details and examples.
The driver now supports tracing database commands and driver operations for OpenTelemetry.
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.
Thank you to @tottoto and @FalkWoldmann for their several contributions to update and refine our dependencies!
Impactful changes are listed below; for a complete list of changes, see this GitHub query.
Display and Serialize for ConnectionString (#1494)Error (#1474)Note
Version 3.4.0 of the driver was skipped due to an issue in the release process.
Nothing published for this version
With the stabilization of async closures , the convenient transaction API ( StartTransaction::and_run ) has been deprecated in favor of StartTransacti…
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.
bson 3.0This 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.
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.
The driver now supports the use of GSSAPI for authentication of driver connections on Linux, MacOS, and Windows.
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.
Impactful changes are listed below; for a complete list of changes see this GitHub query.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →