Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 154 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ in-use-encryption = ["dep:mongocrypt", "dep:rayon", "dep:num_cpus"]
# The in-use encryption API is stable; this is for backwards compatibility.
in-use-encryption-unstable = ["in-use-encryption"]

# Enables extra chrono interfaces for the bson crate.
bson3-chrono = ["bson3/chrono-0_4"]
# Enables extra jiff interfaces for the bson crate.
bson3-jiff = ["bson3/jiff-0_2"]
# Enables extra time interfaces for the bson crate.
# bson3-time = ["bson3/time"]
# Enables extra uuid interfaces for the bson crate.
bson3-uuid = ["bson3/uuid-1"]
# Enables extra serde-with interfaces for the bson crate (chrono/uuid)
bson3-serde-with = ["bson3/serde", "bson3/serde_with-3"]

# Enables support for emitting tracing events.
# The tracing API is unstable and may have backwards-incompatible changes in minor version updates.
# TODO: pending https://github.com/tokio-rs/tracing/issues/2036 stop depending directly on log.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ features = ["sync"]
| `text-indexes-unstable` | Enables support for text indexes in explicit encryption. This feature is in preview and should be used for experimental workloads only. This feature is unstable and its security is not guaranteed until released as Generally Available (GA). The GA version of this feature may not be backwards compatible with the preview version. |
| `error-backtrace` | Capture backtraces in `Error` values. This can be slow, memory intensive, and very verbose. |
| `bson-3` | Use version 3.x of the `bson` crate; for backwards compatibility, without this feature enabled `bson` 2.x is used. |
| `bson3-chrono` | Enable extra [`chrono`](https://docs.rs/chrono/latest/chrono/) APIs for `bson3` |
| `bson3-jiff` | Enable extra [`jiff`](https://docs.rs/jiff/latest/jiff/) APIs for `bson3` |
| `bson3-uuid` | Enable extra [`uuid`](https://docs.rs/uuid/latest/uuid/) APIs for `bson3` |
| `bson3-serde-with` | Enable extra [`serde-with`](https://docs.rs/serde_with/latest/serde_with/) helpers for `bson3` |

## Web Framework Examples

Expand Down