mongodb / bson-rust

Encoding and decoding support for BSON in Rust
MIT License
405 stars 134 forks source link

RUST-1764 Add `HumanReadable` convenience wrapper #471

Closed abr-egn closed 8 months ago

abr-egn commented 8 months ago

RUST-1764

This wrapper removes the need for the human_readable_serialization option for Collection and provides more granular control as well. There could hypothetically also be a use for a corresponding NonHumanReadable wrapper but I'd prefer to wait on adding that until someone asks for it.

abr-egn commented 8 months ago

IMO, we should also remove the option from [De]SerializerOptions but that'll have to wait for BSON 3.0. If that makes sense to you I'll add deprecation warnings on those and file a ticket for the removal.

isabelatkinson commented 8 months ago

IMO, we should also remove the option from [De]SerializerOptions but that'll have to wait for BSON 3.0. If that makes sense to you I'll add deprecation warnings on those and file a ticket for the removal.

SGTM