Encoding and decoding support for BSON in Rust
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.
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.0 release of the bson
crate.
This release adds optimizations to the serde
integration that show up to 50% deserialization speed improvement in our benchmarks, as well as a variety of user-submitted fixes.
Cargo.lock.msrv
(#436) (thanks @stIncMale!)The MongoDB Rust driver team is pleased to announce the v2.7.0 release of the bson
crate.
This release adds optional integration with serde_with
3.x, duration_since
methods to DateTime
, and updates some dependencies.
The MongoDB Rust driver team is pleased to announce the v2.6.1 release of the bson
crate.
This release updates the documentation for the Decimal128
type to demonstrate conversion to and from human-readable strings.
The MongoDB Rust driver team is pleased to announce the v2.6.0 release of the bson
crate.
This release includes support for conversion between human-readable strings and the Decimal128 BSON type. It also adds tests to verify that the Rust BSON library builds on WASM.
The MongoDB Rust driver team is pleased to announce the v2.5.0 release of the bson
crate.
This release sees the addition of a wide variety of helper functions, largely focused on making common type conversions more convenient:
Binary::from_base64
allows constructing a Binary
value from a base64-encoded string without having to use another crate.i64_as_bson_datetime
provides Serde helpers for representing bson DateTime
values as rust i64
fields.Binary::as_raw_binary
and RawBinaryRef::to_binary
allow easy interconversion between the parsed and raw slice reference types for binary data.RawBson
and RawDocumentBuf
now implement TryFrom
for their respective parsed types (Bson
and Document
).Document::iter_mut
provides an iterator over mutable references to the contained Bson
values.The MongoDB Rust driver team is pleased to announce the v2.4.0 release of the bson
crate.
The following sections detail some of the more important changes included in this release. For a full list of changes, see the Full Release Notes section below.
uuid
crateThe bson
crate now has a uuid-1
feature that provides an API for interoperation with versions 1.x of the uuid
crate, similar to the existing uuid-0_8
feature. Internal usage of uuid
now uses 1.x, so downstream crates without a need for 0.8 will no longer transitively depend on both version.
DateTime
valuesThe DateTime
type now provides a builder that allows convenient construction from a given year
, month
, day
, and optionally, an hour
, minute
, second
and millisecond
.
clippy
version to 1.62.0The MongoDB Rust driver team is pleased to announce the 2.3.0
release of the bson
crate. This release increases the crate's MSRV to 1.53 and makes the crate's dependency on chrono
optional.
chrono
dependency with time
(#352)