Cargo Features

[dependencies]
polkadot-service = { version = "12.0.0", default-features = false, features = ["db", "full-node", "westend-native", "rococo-native", "try-runtime", "fast-runtime", "malus", "runtime-metrics", "elastic-scaling-experimental", "runtime-benchmarks"] }
default = db, full-node

These default features are set whenever polkadot-service is added without default-features = false somewhere in the dependency tree.

db default

Enables rocksdb of sc-service

sc-service:

The RocksDB feature activates the RocksDB database backend. If it is not activated, and you pass a path to a database, an error will be produced at runtime.

full-node default malus? = kvdb-rocksdb, parity-db, polkadot-approval-distribution, polkadot-availability…distribution, polkadot-availability-distribution, polkadot-availability-recovery, polkadot-collator-protocol, polkadot-dispute-distribution, polkadot-gossip-support, polkadot-network-bridge, polkadot-node-collation-generation, polkadot-node-core-approval-voting, polkadot-node-core-av-store, polkadot-node-core-backing, polkadot-node-core-bitfield-signing, polkadot-node…candidate-validation, polkadot-node-core-chain-api, polkadot-node-core-chain-selection, polkadot-node…dispute-coordinator, polkadot-node…parachains, polkadot-node-core-provisioner, polkadot-node-core-pvf, polkadot-node-core-pvf-checker, polkadot-node-core-runtime-api, polkadot-statement-distribution

Affects polkadot-service::overseer, polkadot-service::workers, polkadot-service::FullBackend, polkadot-service::FullClient, polkadot-service::open_database, polkadot-service::NewFullParams, polkadot-service::NewFull, polkadot-service::IsParachainNode, polkadot-service::new_full, polkadot-service::new_chain_ops, polkadot-service::build_full, polkadot-service::revert_backend, parachains_db::open_creating_rocksdb, parachains_db::open_creating_paritydb

westend-native = bitvec, westend-runtime, westend-runtime-constants

Configure the native runtimes to use.

Affects chain_spec::WestendChainSpec, chain_spec::westend_staging_testnet_config, chain_spec::westend_testnet_genesis, chain_spec::westend_development_config, chain_spec::westend_local_testnet_config

rococo-native = bitvec, rococo-runtime, rococo-runtime-constants

Affects chain_spec::RococoChainSpec, chain_spec::rococo_staging_testnet_config, chain_spec::versi_staging_testnet_config, chain_spec::rococo_development_config, chain_spec::versi_development_config, chain_spec::wococo_development_config, chain_spec::rococo_local_testnet_config, chain_spec::wococo_local_testnet_config, chain_spec::versi_local_testnet_config

try-runtime

Enables try-runtime of frame-support, frame-system, pallet-babe, pallet-staking, pallet-transaction-payment, polkadot-runtime-parachains, optional rococo-runtime, sp-runtime, and optional westend-runtime

westend-runtime:

Polkadot Runtimes

fast-runtime

Enables fast-runtime of optional rococo-runtime and optional westend-runtime

rococo-runtime:

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

malus = full-node
runtime-metrics

Enables runtime-metrics of polkadot-runtime-parachains, optional rococo-runtime, and optional westend-runtime

elastic-scaling-experimental

Enables elastic-scaling-experimental of optional polkadot-collator-protocol

runtime-benchmarks

Enables runtime-benchmarks of frame-benchmarking, frame-benchmarking-cli, frame-support, frame-system, pallet-babe, pallet-staking, polkadot-parachain-primitives, polkadot-primitives, polkadot-runtime-parachains, optional rococo-runtime, sc-client-db, sc-service, sp-runtime, and optional westend-runtime

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.

kvdb-rocksdb full-node
parity-db full-node
bitvec rococo-native? westend-native?
rococo-runtime-constants rococo-native?

Enables rococo-runtime-constants

Polkadot Runtime Constants

westend-runtime-constants westend-native?
westend-runtime westend-native?
rococo-runtime rococo-native?
polkadot-approval-distribution full-node

Enables polkadot-approval-distribution

Polkadot Subsystems

polkadot-availability-bitfield-distribution full-node
polkadot-availability-distribution full-node
polkadot-availability-recovery full-node
polkadot-collator-protocol full-node
polkadot-dispute-distribution full-node
polkadot-gossip-support full-node
polkadot-network-bridge full-node
polkadot-node-collation-generation full-node
polkadot-node-core-approval-voting full-node
polkadot-node-core-av-store full-node
polkadot-node-core-backing full-node
polkadot-node-core-bitfield-signing full-node
polkadot-node-core-candidate-validation full-node
polkadot-node-core-chain-api full-node
polkadot-node-core-chain-selection full-node
polkadot-node-core-dispute-coordinator full-node
polkadot-node-core-prospective-parachains full-node
polkadot-node-core-provisioner full-node
polkadot-node-core-pvf full-node
polkadot-node-core-pvf-checker full-node
polkadot-node-core-runtime-api full-node
polkadot-statement-distribution full-node