Cargo Features

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

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

std default

Enables std of parity-scale-codec, optional frame-benchmarking ^38.0.0, frame-support ^38.0.0, frame-system ^38.0.0, log, pallet-authorship ^38.0.0, pallet-session, scale-info, sp-application-crypto ^38.0.0, sp-consensus-grandpa ^21.0.0, sp-core ^34.0.0, sp-io ^38.0.0, sp-runtime ^39.0.1, sp-session ^36.0.0, and sp-staking ^36.0.0

try-runtime

Enables try-runtime of frame-support ^38.0.0, frame-system ^38.0.0, pallet-authorship ^38.0.0, pallet-session, and sp-runtime ^39.0.1

runtime-benchmarks

Enables runtime-benchmarks of frame-benchmarking ^38.0.0, frame-support ^38.0.0, frame-system ^38.0.0, sp-runtime ^39.0.1, and sp-staking ^36.0.0

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 ^38.0.0