Cargo Features

[dependencies]
polkadot-runtime = { version = "3.0.0", default-features = false, features = ["no_std", "std", "only-staking", "try-runtime", "runtime-benchmarks", "on-chain-release-build", "fast-runtime", "runtime-metrics"] }
default = std

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

no_std
std default = serde_derive

Enables std of sp-authority-discovery ^22.0.0, sp-consensus-babe ^0.28.0, sp-consensus-beefy ^9.0.0, bitvec, sp-block-builder ^22.0.0, optional frame-benchmarking ^24.0.0, frame-election-provider-support ^24.0.0, frame-executive ^24.0.0, frame-support ^24.0.0, frame-system ^24.0.0, optional frame-system-benchmarking ^24.0.0, frame-system-rpc-runtime-api ^22.0.0, frame-try-runtime ^0.30.0, sp-inherents ^22.0.0, log, sp-offchain ^22.0.0, pallet-authority-discovery ^24.0.0, pallet-authorship ^24.0.0, pallet-babe ^24.0.0, pallet-bags-list ^23.0.0, pallet-balances ^24.0.0, pallet-bounties ^23.0.0, pallet-child-bounties ^23.0.0, pallet-collective ^24.0.0, pallet-conviction-voting ^24.0.0, pallet-democracy ^24.0.0, pallet-election-provider-multi-phase ^23.0.0, optional pallet-election-provider-support-benchmarking ^23.0.0, pallet-elections-phragmen ^25.0.0, pallet-fast-unstake ^23.0.0, pallet-grandpa ^24.0.0, pallet-identity ^24.0.0, pallet-im-online ^23.0.0, pallet-indices ^24.0.0, pallet-membership ^24.0.0, pallet-message-queue ^27.0.0, pallet-multisig ^24.0.0, pallet-nomination-pools ^21.0.0, optional pallet-nomination-pools-benchmarking ^22.0.0, pallet-nomination-pools-runtime-api ^19.0.0, pallet-offences ^23.0.0, optional pallet-offences-benchmarking ^24.0.0, pallet-preimage ^24.0.0, pallet-proxy ^24.0.0, pallet-referenda ^24.0.0, pallet-scheduler ^25.0.0, pallet-session ^24.0.0, optional pallet-session-benchmarking ^24.0.0, pallet-staking ^24.0.0, pallet-staking-runtime-api ^10.0.0, pallet-timestamp ^23.0.0, pallet-tips ^23.0.0, pallet-transaction-payment ^24.0.0, pallet-transaction-payment-rpc-runtime-api ^24.0.0, pallet-treasury ^23.0.0, pallet-utility ^24.0.0, pallet-vesting ^24.0.0, pallet-whitelist ^23.0.0, pallet-xcm ^3.0.0, optional pallet-xcm-benchmarks ^3.0.0, parity-scale-codec, polkadot-runtime-constants, polkadot-primitives ^3.0.0, polkadot-runtime-common ^3.0.0, polkadot-runtime-parachains ^3.0.0, rustc-hex, scale-info, serde, sp-api ^22.0.0, sp-arithmetic ^19.0.0, sp-core ^24.0.0, sp-genesis-builder ^0.3.0, sp-io ^26.0.0, sp-mmr-primitives ^22.0.0, sp-npos-elections ^22.0.0, sp-runtime ^27.0.0, sp-session ^23.0.0, sp-staking ^22.0.0, sp-std ^11.0.0, sp-storage ^16.0.0, sp-version ^25.0.0, sp-transaction-pool ^22.0.0, staging-xcm ^3.0.0, staging-xcm-builder ^3.0.0, and staging-xcm-executor ^3.0.0

bitvec:

The standard library includes the allocator.

only-staking
try-runtime = frame-try-runtime

Enables try-runtime of frame-election-provider-support ^24.0.0, frame-executive ^24.0.0, frame-support ^24.0.0, frame-system ^24.0.0, frame-try-runtime ^0.30.0, pallet-authority-discovery ^24.0.0, pallet-authorship ^24.0.0, pallet-babe ^24.0.0, pallet-bags-list ^23.0.0, pallet-balances ^24.0.0, pallet-bounties ^23.0.0, pallet-child-bounties ^23.0.0, pallet-collective ^24.0.0, pallet-conviction-voting ^24.0.0, pallet-democracy ^24.0.0, pallet-election-provider-multi-phase ^23.0.0, pallet-elections-phragmen ^25.0.0, pallet-fast-unstake ^23.0.0, pallet-grandpa ^24.0.0, pallet-identity ^24.0.0, pallet-im-online ^23.0.0, pallet-indices ^24.0.0, pallet-membership ^24.0.0, pallet-message-queue ^27.0.0, pallet-multisig ^24.0.0, pallet-nomination-pools ^21.0.0, pallet-offences ^23.0.0, pallet-preimage ^24.0.0, pallet-proxy ^24.0.0, pallet-referenda ^24.0.0, pallet-scheduler ^25.0.0, pallet-session ^24.0.0, pallet-staking ^24.0.0, pallet-timestamp ^23.0.0, pallet-tips ^23.0.0, pallet-transaction-payment ^24.0.0, pallet-treasury ^23.0.0, pallet-utility ^24.0.0, pallet-vesting ^24.0.0, pallet-whitelist ^23.0.0, pallet-xcm ^3.0.0, polkadot-runtime-common ^3.0.0, polkadot-runtime-parachains ^3.0.0, and sp-runtime ^27.0.0

runtime-benchmarks = hex-literal

Enables runtime-benchmarks of frame-benchmarking ^24.0.0, frame-election-provider-support ^24.0.0, frame-support ^24.0.0, frame-system ^24.0.0, frame-system-benchmarking ^24.0.0, pallet-babe ^24.0.0, pallet-bags-list ^23.0.0, pallet-balances ^24.0.0, pallet-bounties ^23.0.0, pallet-child-bounties ^23.0.0, pallet-collective ^24.0.0, pallet-conviction-voting ^24.0.0, pallet-democracy ^24.0.0, pallet-election-provider-multi-phase ^23.0.0, pallet-election-provider-support-benchmarking ^23.0.0, pallet-elections-phragmen ^25.0.0, pallet-fast-unstake ^23.0.0, pallet-grandpa ^24.0.0, pallet-identity ^24.0.0, pallet-im-online ^23.0.0, pallet-indices ^24.0.0, pallet-membership ^24.0.0, pallet-message-queue ^27.0.0, pallet-multisig ^24.0.0, pallet-nomination-pools ^21.0.0, pallet-nomination-pools-benchmarking ^22.0.0, pallet-offences ^23.0.0, pallet-offences-benchmarking ^24.0.0, pallet-preimage ^24.0.0, pallet-proxy ^24.0.0, pallet-referenda ^24.0.0, pallet-scheduler ^25.0.0, pallet-session-benchmarking ^24.0.0, pallet-staking ^24.0.0, pallet-timestamp ^23.0.0, pallet-tips ^23.0.0, pallet-treasury ^23.0.0, pallet-utility ^24.0.0, pallet-vesting ^24.0.0, pallet-whitelist ^23.0.0, pallet-xcm ^3.0.0, pallet-xcm-benchmarks ^3.0.0, polkadot-primitives ^3.0.0, polkadot-runtime-common ^3.0.0, polkadot-runtime-parachains ^3.0.0, sp-runtime ^27.0.0, sp-staking ^22.0.0, staging-xcm-builder ^3.0.0, and staging-xcm-executor ^3.0.0

on-chain-release-build

A feature that should be enabled when the runtime should be build for on-chain deployment. This will disable stuff that shouldn't be part of the on-chain wasm to make it smaller like logging for example.

Enables disable-logging of sp-api ^22.0.0

fast-runtime

Set timing constants (e.g. session period) to faster versions to speed up testing.

runtime-metrics

Enables runtime-metrics of polkadot-runtime-parachains ^3.0.0, with-tracing of sp-io ^26.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.

serde_derive std
pallet-xcm-benchmarks runtime-benchmarks?

Enables pallet-xcm-benchmarks ^3.0.0

frame-benchmarking runtime-benchmarks?

Enables frame-benchmarking ^24.0.0

frame-try-runtime std try-runtime?

Enables frame-try-runtime ^0.30.0

frame-system-benchmarking runtime-benchmarks?

Enables frame-system-benchmarking ^24.0.0

pallet-election-provider-support-benchmarking runtime-benchmarks?

Enables pallet-election-provider-support-benchmarking ^23.0.0

pallet-offences-benchmarking runtime-benchmarks?

Enables pallet-offences-benchmarking ^24.0.0

pallet-session-benchmarking runtime-benchmarks?

Enables pallet-session-benchmarking ^24.0.0

pallet-nomination-pools-benchmarking runtime-benchmarks?

Enables pallet-nomination-pools-benchmarking ^22.0.0

hex-literal runtime-benchmarks?