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
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ This repository contains the officially supported MongoDB Rust driver, a client
9
9
-[Importing](#importing)
10
10
-[Configuring the async runtime](#configuring-the-async-runtime)
11
11
-[Enabling the sync API](#enabling-the-sync-api)
12
+
-[All feature flags](#all-feature-flags)
12
13
-[Example Usage](#example-usage)
13
14
-[Using the async API](#using-the-async-api)
14
15
- [Connecting to a MongoDB deployment](#connecting-to-a-mongodb-deployment)
@@ -58,6 +59,17 @@ features = ["sync"]
58
59
```
59
60
**Note:** if the sync API is enabled, the async-specific types will be privatized (e.g. `mongodb::Client`). The sync-specific types can be imported from `mongodb::sync` (e.g. `mongodb::sync::Client`).
60
61
62
+
### All Feature Flags
63
+
64
+
| Feature | Description | Extra dependencies | Default |
|`tokio-runtime`| Enable support for the `tokio` async runtime |`tokio` 1.0 with the `full` feature | yes |
67
+
|`async-std-runtime`| Enable support for the `async-std` runtime |`async-std` 1.0 | no |
68
+
|`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 |
69
+
|`aws-auth`| Enable support for the MONGODB-AWS authentication mechanism. |`reqwest` 0.11 | no |
70
+
|`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. |`uuid` 0.8 | no |
71
+
|`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 |
72
+
61
73
## Example Usage
62
74
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/2.0.0-beta.3).
0 commit comments