Cargo Features

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

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

std default

Enables std of bp-header-chain and bp-runtime

bp-runtime:

Bridge Dependencies

and std of bp-test-utils, parity-scale-codec, finality-grandpa, and frame-benchmarking

bp-test-utils:

Optional Benchmarking Dependencies

and std of frame-support, frame-system, log, scale-info, sp-consensus-grandpa, sp-runtime, sp-std, and sp-trie

frame-support:

Substrate Dependencies

try-runtime

Enables try-runtime of frame-support, frame-system, and sp-runtime

runtime-benchmarks = bp-test-utils

Enables runtime-benchmarks of frame-benchmarking, frame-support, frame-system, and sp-runtime

Affects pallet-bridge-grandpa::benchmarking, pallet-bridge-grandpa::initialize_for_benchmarks

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.

bp-test-utils runtime-benchmarks? std
frame-benchmarking runtime-benchmarks? std