Cargo Features

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

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

db default

Enables db of polkadot-service

cli default = clap, frame-benchmarking-cli, sc-cli, sc-service, sc-tracing, service
full-node default malus?

Enables full-node of polkadot-service

try-runtime

Enables try-runtime of polkadot-service and sp-runtime

fast-runtime

Enables fast-runtime of polkadot-service

pyroscope = pyro, pyroscope_pprofrs
runtime-benchmarks

Enables runtime-benchmarks of optional frame-benchmarking-cli, polkadot-node-metrics, optional sc-service, polkadot-service, and sp-runtime

westend-native

Configure the native runtimes to use.

Enables westend-native of polkadot-service

rococo-native

Enables rococo-native of polkadot-service

malus = full-node

Enables malus of polkadot-service

Affects command::run_node

runtime-metrics

Enables runtime-metrics of polkadot-node-metrics and polkadot-service

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.

clap cli
pyro pyroscope?

Enables pyroscope

pyroscope_pprofrs pyroscope?
service cli db fast-runtime? full-node malus? rococo-native? runtime-benchmarks? runtime-metrics? try-runtime? westend-native?

Enables polkadot-service

frame-benchmarking-cli cli
sc-cli cli
sc-service cli
sc-tracing cli