Cargo Features
[dependencies]
unique_id = { version = "0.1.5", default-features = false, features = ["random", "sequence", "string"] }
- default = random, sequence, string
-
These default features are set whenever
unique_id
is added without
somewhere in the dependency tree.default-features = false - random default = uuid
-
Affects
unique_id::random
… - sequence default = lazy_static
-
Affects
unique_id::sequence
… - string default = blob-uuid
-
Affects
unique_id::string
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.