Cargo Features

polkadot-primitives = { version = "13.0.0", default-features = false, features = ["std", "runtime-benchmarks"] }
default = std

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

std default = sp-keystore

Enables std of sp-application-crypto, bitvec, sp-inherents, log, parity-scale-codec, polkadot-core-primitives, polkadot-parachain-primitives, sp-core, sp-runtime, scale-info, serde, sp-api, sp-arithmetic, sp-authority-discovery, sp-consensus-slots, sp-io, optional sp-keystore, sp-staking, and sp-std


The standard library includes the allocator.

Affects v7::CollatorPair


Enables runtime-benchmarks of polkadot-parachain-primitives, sp-runtime, and sp-staking

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.

sp-keystore std