Cargo Features

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

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

no_std
std default = serde_derive

Enables std of sp-authority-discovery, sp-consensus-babe, sp-consensus-beefy, binary-merkle-tree, bitvec, sp-block-builder, optional frame-benchmarking, frame-election-provider-support, frame-executive, frame-support, frame-system, optional frame-system-benchmarking, frame-system-rpc-runtime-api, frame-try-runtime, sp-inherents, log, sp-offchain, pallet-asset-rate, pallet-authority-discovery, pallet-authorship, pallet-babe, pallet-bags-list, pallet-balances, pallet-beefy, pallet-beefy-mmr, pallet-collective, pallet-conviction-voting, pallet-democracy, pallet-election-provider-multi-phase, optional pallet-election-provider-support-benchmarking, pallet-elections-phragmen, pallet-fast-unstake, pallet-grandpa, pallet-identity, pallet-indices, pallet-membership, pallet-message-queue, pallet-mmr, pallet-multisig, pallet-nomination-pools, optional pallet-nomination-pools-benchmarking, pallet-nomination-pools-runtime-api, pallet-offences, optional pallet-offences-benchmarking, pallet-preimage, pallet-proxy, pallet-recovery, pallet-referenda, pallet-root-testing, pallet-scheduler, pallet-session, optional pallet-session-benchmarking, pallet-society, pallet-staking, pallet-staking-runtime-api, pallet-state-trie-migration, pallet-sudo, pallet-timestamp, pallet-transaction-payment, pallet-transaction-payment-rpc-runtime-api, pallet-treasury, pallet-utility, pallet-vesting, pallet-whitelist, pallet-xcm, optional pallet-xcm-benchmarks, parity-scale-codec, polkadot-parachain-primitives, polkadot-primitives, polkadot-runtime-common, polkadot-runtime-parachains, rustc-hex, scale-info, serde, sp-api, sp-application-crypto, sp-arithmetic, sp-core, sp-genesis-builder, sp-io, sp-mmr-primitives, sp-npos-elections, sp-runtime, sp-session, sp-staking, sp-std, sp-storage, sp-version, sp-transaction-pool, westend-runtime-constants, staging-xcm, staging-xcm-builder, staging-xcm-executor, and xcm-fee-payment-runtime-api

bitvec:

The standard library includes the allocator.

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

Enables try-runtime of frame-election-provider-support, frame-executive, frame-support, frame-system, frame-try-runtime, pallet-asset-rate, pallet-authority-discovery, pallet-authorship, pallet-babe, pallet-bags-list, pallet-balances, pallet-beefy, pallet-beefy-mmr, pallet-collective, pallet-conviction-voting, pallet-democracy, pallet-election-provider-multi-phase, pallet-elections-phragmen, pallet-fast-unstake, pallet-grandpa, pallet-identity, pallet-indices, pallet-membership, pallet-message-queue, pallet-mmr, pallet-multisig, pallet-nomination-pools, pallet-offences, pallet-preimage, pallet-proxy, pallet-recovery, pallet-referenda, pallet-root-testing, pallet-scheduler, pallet-session, pallet-society, pallet-staking, pallet-state-trie-migration, pallet-sudo, pallet-timestamp, pallet-transaction-payment, pallet-treasury, pallet-utility, pallet-vesting, pallet-whitelist, pallet-xcm, polkadot-runtime-common, polkadot-runtime-parachains, and sp-runtime

runtime-benchmarks = hex-literal

Enables runtime-benchmarks of frame-benchmarking, frame-election-provider-support, frame-support, frame-system, frame-system-benchmarking, pallet-asset-rate, pallet-babe, pallet-bags-list, pallet-balances, pallet-collective, pallet-conviction-voting, pallet-democracy, pallet-election-provider-multi-phase, pallet-election-provider-support-benchmarking, pallet-elections-phragmen, pallet-fast-unstake, pallet-grandpa, pallet-identity, pallet-indices, pallet-membership, pallet-message-queue, pallet-mmr, pallet-multisig, pallet-nomination-pools, pallet-nomination-pools-benchmarking, pallet-offences, pallet-offences-benchmarking, pallet-preimage, pallet-proxy, pallet-recovery, pallet-referenda, pallet-scheduler, pallet-session-benchmarking, pallet-society, pallet-staking, pallet-state-trie-migration, pallet-sudo, pallet-timestamp, 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, and staging-xcm-executor

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, with-tracing of sp-io

on-chain-release-build

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.

Enables disable-logging of sp-api

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?
pallet-election-provider-support-benchmarking runtime-benchmarks?
pallet-nomination-pools-benchmarking runtime-benchmarks?
pallet-offences-benchmarking runtime-benchmarks?
pallet-session-benchmarking runtime-benchmarks?
hex-literal runtime-benchmarks?