NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #1937 most downloaded on crates.io
Encoding and decoding support for BSON in Rust
Last release 10 months ago
20 Nov 2025
Ships fairly regularly
a new release about every 3 months
Rarely documented
notes for 10 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
11 years old
72 releases · first in 2015
The MongoDB Rust driver team is pleased to announce the v3.1.0 release of the bson crate.
The MongoDB Rust driver team is pleased to announce the v3.1.0 release of the bson crate.
See this GitHub query for a full list of changes.
For detailed information on breaking changes and code examples, please see the migration guide .
The MongoDB Rust driver team is pleased to announce the v3.0.0 release of the bson crate.
3.0 updates several APIs in backwards-incompatible ways; in most cases these changes should require only minor updates in application code.
Most notably:
bson::error::Error type, with fields for values common across errors like message or associated key and a kind enum that provides granular root cause information.&CStr: The bson crate now provides types that directly model the BSON spec "cstring" type, removing a potential source of panic!s and allowing validation at either run-time or compile-time for constant strings.serde: Integration with serde is now an optional feature; in support of this, the API has been updated to clarify where methods are for encoding (directly converting Rust BSON values into BSON bytes) or for serialization (converting arbitrary Rust structs to BSON values or bytes via the serde crate).For detailed information on breaking changes and code examples, please see the migration guide.
Impactful changes are listed below; for a full list of changes see this GitHub query.
One column per quarter.
The MongoDB Rust driver team is pleased to announce the v2.15.0 release of the bson crate.
The MongoDB Rust driver team is pleased to announce the v2.15.0 release of the bson crate.
This release adds a contributed uncapped_max_size feature; when enabled, this increases the maximum size of a document from 16 MB to 2 GB.
uncapped_max_size feature to allow increasing max BSON size (#528) (thanks @Trevader24135!)The MongoDB Rust driver team is pleased to announce the v2.14.0 release of the bson crate.
The MongoDB Rust driver team is pleased to announce the v2.14.0 release of the bson crate.
This release adds:
bson::binary::Vector type, providing efficient support for includingDateTime to add milliseconds and Duration,Index impls for Bson and Document, allowing convenient shorthand element lookup.This release also updates the MSRV to 1.81.
The MongoDB Rust driver team is pleased to announce the v2.13.0 release of the bson crate.
The MongoDB Rust driver team is pleased to announce the v2.12.0 release of the bson crate.
The MongoDB Rust driver team is pleased to announce the v2.12.0 release of the bson crate.
This release was largely driven by external contributions!
Hash and Eq for the Bson family of typesObjectId::from_parts, allowing direct construction of an ObjectId from its component valuesOption<chrono::DateTime<_>> as Option<bson::DateTime>Decimal128We've also added optional (off by default) integration with the serde_path_to_error crate, which
provides paths to the precise point of failure for deserialization of nested data structures.
Option<chrono::DateTime<_>> as Option<bson::DateTime> (thanks @lazureykis!)This release introduces the HumanReadable helper type; this provides more flexible control than the human_readable option, which is now deprecated.
The MongoDB Rust driver team is pleased to announce the v2.11.0 release of the bson crate.
This release introduces the HumanReadable helper type; this provides more flexible control than the human_readable option, which is now deprecated.
The MongoDB Rust driver team is pleased to announce the v2.10.0 release of the bson crate.
The MongoDB Rust driver team is pleased to announce the v2.10.0 release of the bson crate.
This release adds several bugfixes and the RawDocumentBuf::append_ref method, providing a method equivalent to append for borrowed data. This can be useful for avoiding the need for intermediate buffers when the source data is borrowed.
The MongoDB Rust driver team is pleased to announce the v2.9.0 release of the bson crate.
The MongoDB Rust driver team is pleased to announce the v2.9.0 release of the bson crate.
This release adds several externally contributed improvements!
RawIter type that iterates over elements in a document without deserializing them,doc and bson macros (and their raw counterparts) that allows using types that implement Into<Bson> or Into<RawBson>,From<&mut T> for Bson for types that implement Into<Bson>,serde_with 3.x support for the Uuid type.The MongoDB Rust driver team is pleased to announce the v2.8.1 release of the bson crate.
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
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
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
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
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 →