Cargo Features

[dependencies]
sp-consensus-babe = { version = "0.37.0", default-features = false, features = ["std", "serde"] }
default = std

The std feature is set by default whenever sp-consensus-babe is added without default-features = false somewhere in the dependency tree.

std default = async-trait

Enables std of parity-scale-codec, scale-info, serde, sp-api, sp-application-crypto, sp-consensus-slots, sp-core, sp-inherents, sp-runtime, and sp-timestamp

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

Affects inherents::InherentDataProvider, sp-consensus-babe::AuthorityPair

serde std

Serde support without relying on std features.

Enables serde, serde of scale-info, serde of sp-application-crypto, sp-consensus-slots, 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.

async-trait std
sp-timestamp std