Cargo Features
[dependencies]
polkadot-sdk-frame = { version = "0.2.0", default-features = false, features = ["std", "experimental", "runtime"] }
- 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 optional sp-version
primitive types used for developing FRAME runtimes.
and std of sp-runtime, sp-std, optional sp-session, and optional sp-transaction-pool
sp-runtime:
primitive deps, used for developing FRAME pallets.
and std of frame-support, frame-system, log, optional frame-executive, and optional frame-system-rpc-runtime-api
frame-support:
frame deps, for developing FRAME pallets.
and std of parity-scale-codec, scale-info, sp-arithmetic, sp-core, sp-io, optional sp-api, optional sp-block-builder, optional sp-consensus-aura, optional sp-consensus-grandpa, optional sp-inherents, and optional sp-offchain
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-transaction-pool, sp-version
-
Affects
polkadot-sdk-frame::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.