Cargo Features
[dependencies]
westend-runtime = { version = "18.0.1", default-features = false, features = ["no_std", "std", "only-staking", "try-runtime", "runtime-benchmarks", "metadata-hash", "fast-runtime", "runtime-metrics", "on-chain-release-build"] }
- default = std
-
The
std
feature is set by default wheneverwestend-runtime
is added without
somewhere in the dependency tree.default-features = false - no_std
- std default = serde_derive
-
Enables std of binary-merkle-tree, bitvec, parity-scale-codec, optional frame-benchmarking, frame-election-provider-support, 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-bags-list, pallet-balances, pallet-beefy, pallet-beefy-mmr, pallet-collective, pallet-conviction-voting, pallet-delegated-staking, 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 ^35.0.0, optional pallet-nomination-pools-benchmarking, pallet-nomination-pools-runtime-api ^33.0.0, pallet-offences, optional pallet-offences-benchmarking, pallet-parameters, 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, polkadot-parachain-primitives, polkadot-primitives, polkadot-runtime-common, polkadot-runtime-parachains, scale-info, serde, serde_json, sp-api, sp-application-crypto, 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-npos-elections, sp-offchain, sp-runtime, sp-session, sp-staking, sp-storage, sp-transaction-pool, sp-version, westend-runtime-constants, staging-xcm, staging-xcm-builder, staging-xcm-executor, and xcm-runtime-apis
bitvec:
The standard library includes the allocator.
Affects
westend-runtime::fast_runtime_binary
… - 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-delegated-staking, 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 ^35.0.0, pallet-offences, pallet-parameters, 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
-
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-beefy-mmr, pallet-collective, pallet-conviction-voting, pallet-delegated-staking, 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 ^35.0.0, pallet-nomination-pools-benchmarking, pallet-offences, pallet-offences-benchmarking, pallet-parameters, 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, 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.
- 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?
- pallet-election-provider-support-benchmarking runtime-benchmarks?
- pallet-nomination-pools-benchmarking runtime-benchmarks?
- pallet-offences-benchmarking runtime-benchmarks?
- pallet-session-benchmarking runtime-benchmarks?