Cargo Features
[dependencies]
sp-consensus-aura = { version = "0.40.0", default-features = false, features = ["std", "serde"] }
- default = std
-
The
std
feature is set by default wheneversp-consensus-aura
is added without
somewhere in the dependency tree.default-features = false - std default = async-trait
-
Enables std of parity-scale-codec, scale-info, sp-api, sp-application-crypto, sp-consensus-slots, sp-inherents, sp-runtime, and sp-timestamp
Affects
inherents::InherentDataProvider
… - serde
-
Serde support without relying on std features.
Enables serde of scale-info, sp-application-crypto, sp-consensus-slots, and sp-runtime
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.