Cargo Features
[dependencies]
sp-consensus-grandpa = { version = "21.0.0", default-features = false, features = ["std", "serde"] }
- default = std
-
The
std
feature is set by default wheneversp-consensus-grandpa
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of parity-scale-codec, finality-grandpa, log, scale-info, serde, sp-api, sp-application-crypto, sp-core, sp-keystore, and sp-runtime
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.Affects
sp-consensus-grandpa::sign_message
… - serde std
-
Serde support without relying on std features.
Enables serde, serde of scale-info, serde of sp-application-crypto, sp-core, 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.