Cargo Features

[dependencies]
polkadot-primitives = { version = "16.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 bitvec, parity-scale-codec, log, polkadot-core-primitives, polkadot-parachain-primitives, scale-info, serde, sp-api, sp-application-crypto, sp-arithmetic, sp-authority-discovery, sp-consensus-slots, sp-core, sp-inherents, sp-io, optional sp-keystore, sp-runtime, and sp-staking

bitvec:

The standard library includes the allocator.

Affects v8::CollatorPair

runtime-benchmarks

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