File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ Add the following to your `Cargo.toml`:
31
31
version = " 1.13.1"
32
32
features = [
33
33
" v4" , # Lets you generate random UUIDs
34
- " fast-rng" , # Use a faster (but still sufficiently random) RNG
35
- " macro-diagnostics" , # Enable better diagnostics for compile-time UUIDs
36
34
]
37
35
```
38
36
Original file line number Diff line number Diff line change 107
107
//! `borsh`.
108
108
//! * `arbitrary` - adds an `Arbitrary` trait implementation to `Uuid` for
109
109
//! fuzzing.
110
- //! * `fast-rng` - uses a faster algorithm for generating random UUIDs.
110
+ //! * `fast-rng` - uses a faster algorithm for generating random UUIDs when available .
111
111
//! This feature requires more dependencies to compile, but is just as suitable for
112
112
//! UUIDs as the default algorithm.
113
+ //! * `rng-rand` - forces `rand` as the backend for randomness.
114
+ //! * `rng-getrandom` - forces `getrandom` as the backend for randomness.
113
115
//! * `bytemuck` - adds a `Pod` trait implementation to `Uuid` for byte manipulation
114
116
//!
115
117
//! # Unstable features
166
168
//! produce random bytes yourself and then pass them to [`Builder::from_random_bytes`]
167
169
//! without enabling the `v4` or `v7` features.
168
170
//!
169
- //! Versions of `uuid` `1.12` or earlier relied on ` getrandom` for randomness, this
170
- //! is no longer guaranteed and configuring `getrandom`'s provider is not guaranteed
171
- //! to make other features relying on randomness work .
171
+ //! If you're using `getrandom`, you can specify the `rng- getrandom` or `rng-rand`
172
+ //! features of `uuid` and configure `getrandom`'s provider per its docs. `uuid`
173
+ //! may upgrade its version of `getrandom` in minor releases .
172
174
//!
173
175
//! # Examples
174
176
//!
You can’t perform that action at this time.
0 commit comments