Cargo Features

[dependencies]
pallet-staking = { version = "32.0.0", default-features = false, features = ["std", "try-runtime", "runtime-benchmarks"] }
default = std

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

std default

Enables std of parity-scale-codec, optional frame-benchmarking ^32.0.0, frame-election-provider-support ^32.0.0, frame-support ^32.0.0, frame-system ^32.0.0, log, pallet-authorship ^32.0.0, pallet-session, scale-info, serde, sp-application-crypto ^34.0.0, sp-io ^34.0.0, sp-runtime ^35.0.0, sp-staking ^30.0.0, and sp-std

frame-benchmarking:

Optional imports for benchmarking

Affects pallet-staking::TestBenchmarkingConfig

try-runtime

Enables try-runtime of frame-election-provider-support ^32.0.0, frame-support ^32.0.0, frame-system ^32.0.0, pallet-authorship ^32.0.0, pallet-session, and sp-runtime ^35.0.0

Affects migrations::v8.pre_migrate, migrations::v8.post_migrate

runtime-benchmarks = rand_chacha

Enables runtime-benchmarks of frame-benchmarking ^32.0.0, frame-election-provider-support ^32.0.0, frame-support ^32.0.0, frame-system ^32.0.0, sp-runtime ^35.0.0, and sp-staking ^30.0.0

Affects pallet-staking::benchmarking

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.

frame-benchmarking runtime-benchmarks?

Enables frame-benchmarking ^32.0.0

rand_chacha runtime-benchmarks?

Enables rand_chacha ^0.2