Cargo Features
[dependencies]
valuable = { version = "0.1.0", default-features = false, features = ["derive", "std", "alloc"] }
- default = std
-
The
std
feature is set by default whenevervaluable
is added without
somewhere in the dependency tree.default-features = false - derive = valuable-derive
-
Provide derive(Valuable) macro
- std default = alloc
-
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
- alloc std
-
Provide imps for types in Rust's
alloc
library.
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.