Cargo Features
[dependencies]
pallet-staking = { version = "38.0.0", default-features = false, features = ["std", "try-runtime", "runtime-benchmarks"] }
- default = std
-
The
std
feature is set by default wheneverpallet-staking
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of parity-scale-codec, optional frame-benchmarking, frame-election-provider-support, frame-support, frame-system, log, pallet-authorship, pallet-session, scale-info, serde, sp-application-crypto, sp-io, sp-runtime, and sp-staking
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.Affects
pallet-staking::TestBenchmarkingConfig
… - try-runtime
-
Enables try-runtime of frame-election-provider-support, frame-support, frame-system, pallet-authorship, pallet-session, and sp-runtime
Affects
migrations::v8.pre_migrate
,migrations::v8.post_migrate
… - runtime-benchmarks = rand_chacha
-
Enables runtime-benchmarks of frame-benchmarking, frame-election-provider-support, frame-support, frame-system, sp-runtime, and sp-staking
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.