Cargo Features
[dependencies]
uuid = { version = "1.11.0", default-features = false, features = ["std", "macro-diagnostics", "v1", "v3", "v4", "v5", "v6", "v7", "v8", "js", "rng", "fast-rng", "sha1", "md5", "atomic", "borsh", "bytemuck", "serde", "slog", "zerocopy", "arbitrary"] }
- default = std
-
The
std
feature is set by default wheneveruuid
is added without
somewhere in the dependency tree.default-features = false - std default
- macro-diagnostics
-
Enables uuid-macro-internal
- v1 = atomic
-
NOTE: When adding new features, check the
ci.yml
workflow and include them where necessary (you can follow along with existing features)Affects
uuid::v1
… - v3 = md5
- v4 = rng
- v5 = sha1
- v6 = atomic
- v7 = rng
- v8
- js
-
Enables wasm-bindgen and js of optional getrandom
getrandom:
Feature to enable JavaScript bindings on wasm*-unknown-unknown
- rng fast-rng? v4? v7?
-
Enables getrandom
- fast-rng = rng
-
Enables rand
- sha1 v5?
-
Enables sha1_smol
- md5 v3?
-
Enables md-5
- atomic v1? v6?
-
Enables atomic
- borsh
-
Enables borsh and borsh-derive
Features from optional dependencies
- bytemuck implicit feature
-
Enables bytemuck
bytemuck:
A crate for mucking around with piles of bytes
- serde implicit feature
-
Enables serde
serde:
A generic serialization/deserialization framework
Affects
uuid::serde
… - slog implicit feature
-
Enables slog
slog:
Structured, extensible, composable logging for Rust
- zerocopy implicit feature
-
Enables zerocopy
zerocopy:
Zerocopy makes zero-cost memory manipulation effortless. We write "unsafe" so you don't have to.
- arbitrary implicit feature
-
Enables arbitrary
arbitrary:
The trait for generating structured data from unstructured data