Cargo Features
[dependencies]
const-default = { version = "1.0.0", default-features = false, features = ["std", "alloc", "derive", "unstable", "enable-atomics", "unstable-docs"] }
- default = enable-atomics
-
The
enable-atomics
feature is set by default wheneverconst-default
is added without
somewhere in the dependency tree.default-features = false - std = alloc
- alloc std?
- derive = const-default-derive
- unstable
-
Affects
const-default::const_default
… - enable-atomics default
- unstable-docs
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.