Cargo Features
[dependencies]
sfmt = { version = "0.7.0", default-features = false, features = ["thread_rng"] }
- default = thread_rng
-
The
thread_rng
feature is set by default wheneversfmt
is added without
somewhere in the dependency tree.default-features = false - thread_rng default = rand
-
The thread_rng feature requires the rand dependency
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.