Cargo Features
[dependencies]
polkadot-sdk-frame = { version = "0.7.0", default-features = false, features = ["std", "experimental", "runtime", "try-runtime", "runtime-benchmarks"] }
- default = runtime, std
-
These default features are set whenever
polkadot-sdk-frame
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of parity-scale-codec, optional frame-benchmarking, optional frame-executive, frame-support, frame-system, optional frame-system-benchmarking, optional frame-system-rpc-runtime-api, optional frame-try-runtime, log, scale-info, optional sp-api, sp-arithmetic, optional sp-block-builder, optional sp-consensus-aura, optional sp-consensus-grandpa, sp-core, optional sp-inherents, sp-io, optional sp-offchain, sp-runtime, optional sp-session, sp-storage, optional sp-transaction-pool, and optional sp-version
parity-scale-codec:
external deps
Affects
polkadot-sdk-frame::testing_prelude
,polkadot-sdk-frame::runtime.testing_prelude
,polkadot-sdk-frame::runtime
… - experimental
-
Enables experimental of frame-support
- runtime default = frame-executive, frame-system-rpc-runtime-api, sp-api, sp-block-builder, sp-consensus-aura, sp-consensus-grandpa, sp-inherents, sp-offchain, sp-session, sp-storage, sp-transaction-pool, sp-version
-
Affects
polkadot-sdk-frame::runtime
… - try-runtime
-
Enables try-runtime of frame-executive, frame-support, frame-system, frame-try-runtime, and sp-runtime
- runtime-benchmarks
-
Enables runtime-benchmarks of frame-benchmarking, frame-support, frame-system, frame-system-benchmarking, and sp-runtime
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-version runtime
- sp-api runtime
- sp-block-builder runtime
- sp-transaction-pool runtime
- sp-offchain runtime
- sp-session runtime
- sp-consensus-aura runtime
- sp-consensus-grandpa runtime
- sp-inherents runtime
- sp-storage runtime std
- frame-executive runtime try-runtime?
- frame-system-rpc-runtime-api runtime
- frame-benchmarking runtime-benchmarks?
- frame-system-benchmarking runtime-benchmarks?
- frame-try-runtime try-runtime?