Cargo Features
[dependencies]
polkadot-primitives = { version = "17.0.0", default-features = false, features = ["std", "runtime-benchmarks", "test"] }
- default = std
-
The
std
feature is set by default wheneverpolkadot-primitives
is added without
somewhere in the dependency tree.default-features = false - std default = sp-keystore, thiserror
-
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, sp-staking, and sp-std
bitvec:
The standard library includes the allocator.
Affects
v8::CollatorPair
… - runtime-benchmarks
-
Enables runtime-benchmarks of polkadot-parachain-primitives, sp-runtime, and sp-staking
- test
-
Affects
vstaging::MutateDescriptorV2
…
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.
- thiserror std
-
Enables thiserror ^1.0.64
- sp-keystore std
- sp-std std