Cargo Features

[dependencies]
pallet-contracts = { version = "38.0.0", default-features = false, features = ["std", "try-runtime", "runtime-benchmarks"] }
default = std

The std feature is set by default whenever pallet-contracts is added without default-features = false somewhere in the dependency tree.

std default = serde

Enables std of staging-xcm-builder

Polkadot Dependencies

and std of wasmi ^0.32.3, staging-xcm, and optional wasm-instrument

wasm-instrument:

Only used in benchmarking to generate contract code

and std of parity-scale-codec, environmental, frame-support, frame-system, log, scale-info, sp-api, sp-core, sp-io, sp-runtime, sp-std, optional frame-benchmarking, optional pallet-balances, and optional rand

environmental:

Substrate Dependencies

try-runtime

Enables try-runtime of frame-support, frame-system, pallet-balances, and sp-runtime

pallet-balances:

Substrate Dependencies

Affects migration::MigrationStep.pre_upgrade_step, migration::MigrationStep.post_upgrade_step, migration::MigrateSequence.pre_upgrade_step, migration::MigrateSequence.post_upgrade_step, v11::fill_old_queue

runtime-benchmarks = rand, rand_pcg, wasm-instrument

Enables runtime-benchmarks of frame-benchmarking, frame-support, frame-system, pallet-balances, sp-runtime, and staging-xcm-builder

Affects exec::Ext.transient_storage, v09::store_old_dummy_code, v10::store_old_contract_info, v12::store_old_dummy_code, v13::store_old_contract_info, v14::store_dummy_code, v15::store_old_contract_info, v16::store_old_contract_info, v11::fill_old_queue

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.

serde std
wasm-instrument runtime-benchmarks?
rand runtime-benchmarks?
rand_pcg runtime-benchmarks?
frame-benchmarking runtime-benchmarks?
pallet-balances runtime-benchmarks? try-runtime?