Cargo Features
[dependencies]
contracts-node-runtime = { version = "0.42.0", default-features = false, features = ["std", "try-runtime", "parachain", "runtime-benchmarks"] }
- default = std
-
The
std
feature is set by default whenevercontracts-node-runtime
is added without
somewhere in the dependency tree.default-features = false - std default = substrate-wasm-builder
-
Enables std of pallet-assets, pallet-aura, pallet-authorship, pallet-balances, pallet-contracts, pallet-grandpa, pallet-insecure-randomness-collective-flip, pallet-revive, pallet-sudo, pallet-timestamp, pallet-transaction-payment, and pallet-transaction-payment-rpc-runtime-api
pallet-assets:
extra deps for setting up pallet-contracts and pallet-revive
and std of polkadot-runtime-common, scale-info, sp-api, sp-block-builder, sp-consensus-aura, sp-consensus-grandpa, sp-core, sp-genesis-builder, sp-inherents, sp-offchain, sp-runtime, sp-session, sp-storage, sp-transaction-pool, and sp-version
polkadot-runtime-common:
Polkadot
and std of parity-scale-codec, frame-executive, frame-support, frame-system, frame-system-rpc-runtime-api, optional frame-benchmarking, optional frame-system-benchmarking, and optional frame-try-runtime
frame-benchmarking:
Used for runtime benchmarking
Affects
contracts-node-runtime::native_version
… - try-runtime
-
Enables try-runtime of frame-executive, frame-support, frame-system, frame-try-runtime, pallet-assets, pallet-aura, pallet-balances, pallet-contracts, pallet-grandpa, pallet-revive, pallet-sudo, pallet-timestamp, pallet-transaction-payment, and sp-runtime
- parachain
- runtime-benchmarks
-
Enables runtime-benchmarks of frame-benchmarking, frame-support, frame-system, frame-system-benchmarking, pallet-assets, pallet-balances, pallet-grandpa, pallet-sudo, pallet-timestamp, 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.