Cargo Features

[dependencies]
polkadot-runtime-common = { version = "12.0.0", default-features = false, features = ["no_std", "std", "try-runtime", "runtime-benchmarks"] }
default = std

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

no_std
std default

Enables std of bitvec, optional frame-benchmarking, frame-election-provider-support, frame-support, frame-system, sp-inherents, libsecp256k1, log, optional pallet-asset-rate, pallet-authorship, pallet-balances, pallet-broker, pallet-election-provider-multi-phase, pallet-fast-unstake, pallet-identity, pallet-session, pallet-staking, pallet-staking-reward-fn, pallet-timestamp, pallet-transaction-payment, pallet-treasury, pallet-vesting, parity-scale-codec, polkadot-primitives, polkadot-runtime-parachains, rustc-hex, scale-info, serde, slot-range-helper, sp-api, sp-core, sp-io, sp-npos-elections, sp-runtime, sp-session, sp-staking, sp-std, staging-xcm, staging-xcm-builder, and staging-xcm-executor

bitvec:

The standard library includes the allocator.

try-runtime

Enables try-runtime of frame-election-provider-support, frame-support, frame-system, pallet-asset-rate, pallet-authorship, optional pallet-babe, pallet-balances, pallet-broker, pallet-election-provider-multi-phase, pallet-fast-unstake, pallet-identity, pallet-session, pallet-staking, pallet-timestamp, pallet-transaction-payment, pallet-treasury, pallet-vesting, polkadot-runtime-parachains, and sp-runtime

Affects polkadot-runtime-common::try_runtime

runtime-benchmarks

Enables hmac and static-context of libsecp256k1, runtime-benchmarks of frame-benchmarking, frame-election-provider-support, frame-support, and frame-system, runtime-benchmarks of pallet-asset-rate, pallet-babe, pallet-balances, pallet-broker, pallet-election-provider-multi-phase, pallet-fast-unstake, pallet-identity, pallet-staking, pallet-timestamp, pallet-treasury, pallet-vesting, polkadot-primitives, polkadot-runtime-parachains, sp-runtime, sp-staking, staging-xcm-builder, and staging-xcm-executor

Affects impls::benchmarks, integration_tests::new_test_ext_with_offset, xcm_sender::ToParachainDeliveryHelper, xcm_sender::EnsureForParachain

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.

pallet-asset-rate runtime-benchmarks? try-runtime?
frame-benchmarking runtime-benchmarks?
pallet-babe runtime-benchmarks?
xcm-executor runtime-benchmarks? std

Enables staging-xcm-executor