Skip to content

Commit 6ad9aaa

Browse files
authored
RUST-1305 Use uuid 1.x internally and add support for bson uuid 1.x (#709)
1 parent 9692371 commit 6ad9aaa

14 files changed

+231
-18
lines changed

Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ bson-serde_with = ["bson/serde_with"]
5454
# Enable support for v0.8 of the uuid crate in the public API of the BSON library.
5555
bson-uuid-0_8 = ["bson/uuid-0_8"]
5656

57+
# Enable support for v1.x of the uuid crate in the public API of the BSON library.
58+
bson-uuid-1 = ["bson/uuid-1"]
59+
5760
# Enable support for MONGODB-AWS authentication.
5861
# This can only be used with the tokio-runtime feature flag.
5962
aws-auth = ["reqwest"]
@@ -148,7 +151,7 @@ version = "0.7.0"
148151
features = ["io"]
149152

150153
[dependencies.uuid]
151-
version = "0.8.2"
154+
version = "1.1.2"
152155
features = ["v4"]
153156

154157
[dev-dependencies]

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Using the `"sync"` feature also requires using `default-features = false`.
7272
| `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 |
7373
| `aws-auth` | Enable support for the MONGODB-AWS authentication mechanism. | `reqwest` 0.11 | no |
7474
| `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 |
75+
| `bson-uuid-1` | Enable support for v1.x of the [`uuid`](docs.rs/uuid/1.0) crate in the public API of the re-exported `bson` crate. | n/a | no |
7576
| `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 |
7677
| `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 |
7778
| `zlib-compression` | Enable support for compressing messages with [`zlib`](https://zlib.net/) | `flate2` 1.0 | no |

docs/manual/404.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/manual/connecting.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/manual/index.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/manual/installation_features.html

+6-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)