Cargo Features

[dependencies]
sp-staking = { version = "30.0.0", default-features = false, features = ["std", "runtime-benchmarks"] }
default = std

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

std default

Enables std of parity-scale-codec, scale-info, serde, sp-core, 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.

runtime-benchmarks

Enables runtime-benchmarks of sp-runtime

Affects sp-staking::StakingInterface.max_exposure_page_size, sp-staking::StakingInterface.add_era_stakers, sp-staking::StakingInterface.set_current_era

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.

serde std