Cargo Features
[dependencies]
polkadot-service = { version = "19.0.0", default-features = false, features = ["db", "full-node", "westend-native", "rococo-native", "metadata-hash", "try-runtime", "fast-runtime", "malus", "runtime-metrics", "runtime-benchmarks"] }
- default = db, full-node
-
These default features are set whenever
polkadot-service
is added without
somewhere in the dependency tree.default-features = false - 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 = frame-metadata-hash-extension, westend-runtime, westend-runtime-constants
-
Configure the native runtimes to use.
Affects
chain_spec::WestendChainSpec
,chain_spec::westend_staging_testnet_config
,chain_spec::westend_development_config
,chain_spec::westend_local_testnet_config
… - rococo-native = frame-metadata-hash-extension, 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::rococo_local_testnet_config
,chain_spec::versi_local_testnet_config
… - metadata-hash
-
Generate the metadata hash needed for CheckMetadataHash in the test runtimes.
Enables metadata-hash of optional rococo-runtime and optional westend-runtime
- try-runtime
-
Enables try-runtime of frame-system, pallet-transaction-payment, polkadot-runtime-parachains, optional rococo-runtime, sp-runtime, and optional westend-runtime
- 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
- runtime-benchmarks
-
Enables runtime-benchmarks of frame-benchmarking, frame-benchmarking-cli, frame-system, polkadot-primitives, polkadot-runtime-parachains, optional rococo-runtime, sc-service, sp-runtime, optional westend-runtime, and xcm-runtime-apis
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.
- frame-metadata-hash-extension rococo-native? westend-native?
- kvdb-rocksdb full-node
- parity-db full-node
-
Enables parity-db ^0.4.12
- rococo-runtime-constants rococo-native?
- westend-runtime-constants westend-native?
- westend-runtime westend-native?
- rococo-runtime rococo-native?
- polkadot-approval-distribution full-node
- 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