Cargo Features

[dependencies]
rococo-runtime = { version = "18.0.0", default-features = false, features = ["no_std", "std", "try-runtime", "runtime-benchmarks", "metadata-hash", "fast-runtime", "runtime-metrics", "on-chain-release-build"] }
default = std

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

no_std
std default = serde_derive, substrate-wasm-builder

Enables std of binary-merkle-tree, bitvec, parity-scale-codec, optional frame-benchmarking, frame-executive, frame-metadata-hash-extension, frame-support, frame-system, optional frame-system-benchmarking, frame-system-rpc-runtime-api, frame-try-runtime, log, pallet-asset-rate, pallet-authority-discovery, pallet-authorship, pallet-babe, pallet-balances, pallet-beefy, pallet-beefy-mmr, pallet-bounties, pallet-child-bounties, pallet-collective, pallet-conviction-voting, pallet-democracy, pallet-elections-phragmen, pallet-grandpa, pallet-identity, pallet-indices, pallet-membership, pallet-message-queue, pallet-mmr, pallet-multisig, pallet-nis, pallet-offences, pallet-parameters, pallet-preimage, pallet-proxy, pallet-ranked-collective, pallet-recovery, pallet-referenda, pallet-root-testing, pallet-scheduler, pallet-session, pallet-society, pallet-staking, pallet-state-trie-migration, pallet-sudo, pallet-timestamp, pallet-tips, pallet-transaction-payment, pallet-transaction-payment-rpc-runtime-api, pallet-treasury, pallet-utility, pallet-vesting, pallet-whitelist, pallet-xcm, optional pallet-xcm-benchmarks, polkadot-parachain-primitives, polkadot-primitives, polkadot-runtime-common, polkadot-runtime-parachains, rococo-runtime-constants, scale-info, serde, serde_json, sp-api, sp-arithmetic, sp-authority-discovery, sp-block-builder, sp-consensus-babe, sp-consensus-beefy, sp-consensus-grandpa, sp-core, sp-genesis-builder, sp-inherents, sp-io, sp-mmr-primitives, sp-offchain, sp-runtime, sp-session, sp-staking, sp-storage, sp-transaction-pool, sp-version, staging-xcm, staging-xcm-builder, staging-xcm-executor, and xcm-runtime-apis

bitvec:

The standard library includes the allocator.

Affects rococo-runtime::fast_runtime_binary

try-runtime = frame-try-runtime

Enables try-runtime of frame-executive, frame-support, frame-system, frame-try-runtime, pallet-asset-rate, pallet-authority-discovery, pallet-authorship, pallet-babe, pallet-balances, pallet-beefy, pallet-beefy-mmr, pallet-bounties, pallet-child-bounties, pallet-collective, pallet-conviction-voting, pallet-democracy, pallet-elections-phragmen, pallet-grandpa, pallet-identity, pallet-indices, pallet-membership, pallet-message-queue, pallet-mmr, pallet-multisig, pallet-nis, pallet-offences, pallet-parameters, pallet-preimage, pallet-proxy, pallet-ranked-collective, pallet-recovery, pallet-referenda, pallet-root-testing, pallet-scheduler, pallet-session, pallet-society, pallet-staking, pallet-state-trie-migration, pallet-sudo, pallet-timestamp, pallet-tips, pallet-transaction-payment, pallet-treasury, pallet-utility, pallet-vesting, pallet-whitelist, pallet-xcm, polkadot-runtime-common, polkadot-runtime-parachains, and sp-runtime

runtime-benchmarks

Enables runtime-benchmarks of frame-benchmarking, frame-support, frame-system, frame-system-benchmarking, pallet-asset-rate, pallet-babe, pallet-balances, pallet-beefy-mmr, pallet-bounties, pallet-child-bounties, pallet-collective, pallet-conviction-voting, pallet-democracy, pallet-elections-phragmen, pallet-grandpa, pallet-identity, pallet-indices, pallet-membership, pallet-message-queue, pallet-mmr, pallet-multisig, pallet-nis, pallet-offences, pallet-parameters, pallet-preimage, pallet-proxy, pallet-ranked-collective, pallet-recovery, pallet-referenda, pallet-scheduler, pallet-society, pallet-staking, pallet-state-trie-migration, pallet-sudo, pallet-timestamp, pallet-tips, pallet-treasury, pallet-utility, pallet-vesting, pallet-whitelist, pallet-xcm, pallet-xcm-benchmarks, polkadot-parachain-primitives, polkadot-primitives, polkadot-runtime-common, polkadot-runtime-parachains, sp-runtime, sp-staking, staging-xcm-builder, staging-xcm-executor, and xcm-runtime-apis

metadata-hash build on-chain-release-build?

Enable the metadata hash generation in the wasm builder.

Enables metadata-hash of substrate-wasm-builder

fast-runtime

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

Enables fast-runtime of rococo-runtime-constants

runtime-metrics

Enables runtime-metrics of polkadot-runtime-parachains, with-tracing of sp-io

on-chain-release-build = metadata-hash

A feature that should be enabled when the runtime should be built 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.

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?
frame-benchmarking runtime-benchmarks?
frame-try-runtime std try-runtime?
frame-system-benchmarking runtime-benchmarks?
substrate-wasm-builder build metadata-hash? std