You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`tokio-runtime`| Enable support for the `tokio` async runtime |`tokio` 1.0 with the `full` feature | yes |
68
-
|`async-std-runtime`| Enable support for the `async-std` runtime |`async-std` 1.0 | no |
69
-
|`sync`| Expose the synchronous API (`mongodb::sync`). This flag cannot be used in conjunction with either of the async runtime feature flags. |`async-std` 1.0 | no |
70
-
|`aws-auth`| Enable support for the MONGODB-AWS authentication mechanism. |`reqwest` 0.11 | no |
71
-
|`bson-uuid-0_8`| Enable support for v0.8 of the [`uuid`](docs.rs/uuid/0.8) crate in the public API of the re-exported `bson` crate. | n/a | no |
72
-
|`bson-chrono-0_4`| Enable support for v0.4 of the [`chrono`](docs.rs/chrono/0.4) crate in the public API of the re-exported `bson` crate. | n/a | no |
73
-
|`zlib-compression`| Enable support for compressing messages with [`zlib`](https://zlib.net/)|`flate2` 1.0 | no |
74
-
|`zstd-compression`| Enable support for compressing messages with [`zstd`](http://facebook.github.io/zstd/). This flag requires Rust version 1.54. |`zstd` 0.9.0 | no |
75
-
|`snappy-compression`| Enable support for compressing messages with [`snappy`](http://google.github.io/snappy/)|`snap` 1.0.5 | no |
65
+
| Feature | Description | Extra dependencies | Default |
|`tokio-runtime`| Enable support for the `tokio` async runtime |`tokio` 1.0 with the `full` feature | yes |
68
+
|`async-std-runtime`| Enable support for the `async-std` runtime |`async-std` 1.0 | no |
69
+
|`sync`| Expose the synchronous API (`mongodb::sync`). This flag cannot be used in conjunction with either of the async runtime feature flags. |`async-std` 1.0 | no |
70
+
|`aws-auth`| Enable support for the MONGODB-AWS authentication mechanism. |`reqwest` 0.11 | no |
71
+
|`bson-uuid-0_8`| Enable support for v0.8 of the [`uuid`](docs.rs/uuid/0.8) crate in the public API of the re-exported `bson` crate. | n/a | no |
72
+
|`bson-chrono-0_4`| Enable support for v0.4 of the [`chrono`](docs.rs/chrono/0.4) crate in the public API of the re-exported `bson` crate. | n/a | no |
73
+
|`bson-serde_with`| Enable support for the [`serde_with`](docs.rs/serde_with/latest) crate in the public API of the re-exported `bson` crate. |`serde_with` 1.0 | no |
74
+
|`zlib-compression`| Enable support for compressing messages with [`zlib`](https://zlib.net/)|`flate2` 1.0 | no |
75
+
|`zstd-compression`| Enable support for compressing messages with [`zstd`](http://facebook.github.io/zstd/). This flag requires Rust version 1.54. |`zstd` 0.9.0 | no |
76
+
|`snappy-compression`| Enable support for compressing messages with [`snappy`](http://google.github.io/snappy/)|`snap` 1.0.5 | no |
76
77
77
78
## Example Usage
78
79
Below are simple examples of using the driver. For more specific examples and the API reference, see the driver's [docs.rs page](https://docs.rs/mongodb/latest).
//! | `tokio-runtime` | Enable support for the `tokio` async runtime | `tokio` 1.0 with the `full` feature | yes |
56
-
//! | `async-std-runtime` | Enable support for the `async-std` runtime | `async-std` 1.0 | no |
57
-
//! | `sync` | Expose the synchronous API (`mongodb::sync`). This flag cannot be used in conjunction with either of the async runtime feature flags. | `async-std` 1.0 | no |
58
-
//! | `aws-auth` | Enable support for the MONGODB-AWS authentication mechanism. | `reqwest` 0.11 | no |
59
-
//! | `bson-uuid-0_8` | Enable support for v0.8 of the [`uuid`] crate in the public API of the re-exported `bson` crate. | n/a | no |
60
-
//! | `bson-chrono-0_4` | Enable support for v0.4 of the [`chrono`] crate in the public API of the re-exported `bson` crate. | n/a | no |
61
-
//! | `zlib-compression`] | Enable support for compressing messages with [`zlib`](https://zlib.net/). | `flate2` 1.0 | no |
62
-
//! | `zstd-compression` | Enable support for compressing messages with [`zstd`](http://facebook.github.io/zstd/). This flag requires Rust version 1.54. | `zstd` 0.9.0 | no |
63
-
//! | `snappy-compression` | Enable support for compressing messages with [`snappy`](http://google.github.io/snappy/). | `snap` 1.0.5 | no |
//! | `tokio-runtime` | Enable support for the `tokio` async runtime | `tokio` 1.0 with the `full` feature | yes |
56
+
//! | `async-std-runtime` | Enable support for the `async-std` runtime | `async-std` 1.0 | no |
57
+
//! | `sync` | Expose the synchronous API (`mongodb::sync`). This flag cannot be used in conjunction with either of the async runtime feature flags. | `async-std` 1.0 | no |
58
+
//! | `aws-auth` | Enable support for the MONGODB-AWS authentication mechanism. | `reqwest` 0.11 | no |
59
+
//! | `bson-uuid-0_8` | Enable support for v0.8 of the [`uuid`](docs.rs/uuid/0.8) crate in the public API of the re-exported `bson` crate. | n/a | no |
60
+
//! | `bson-chrono-0_4` | Enable support for v0.4 of the [`chrono`](docs.rs/chrono/0.4) crate in the public API of the re-exported `bson` crate. | n/a | no |
61
+
//! | `bson-serde_with` | Enable support for the [`serde_with`](docs.rs/serde_with/latest) crate in the public API of the re-exported `bson` crate. | `serde_with` 1.0 | no |
62
+
//! | `zlib-compression` | Enable support for compressing messages with [`zlib`](https://zlib.net/) | `flate2` 1.0 | no |
63
+
//! | `zstd-compression` | Enable support for compressing messages with [`zstd`](http://facebook.github.io/zstd/). This flag requires Rust version 1.54. | `zstd` 0.9.0 | no |
64
+
//! | `snappy-compression` | Enable support for compressing messages with [`snappy`](http://google.github.io/snappy/) | `snap` 1.0.5 | no |
0 commit comments