Cargo Features

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

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

std default = serde

Enables full of pallet-contracts-proc-macro ^18.0.0 and std of staging-xcm-builder ^7.0.0

Polkadot Dependencies

and std of parity-scale-codec, environmental, frame-support ^28.0.0, frame-system ^28.0.0, log, optional frame-benchmarking ^28.0.0, and optional pallet-balances ^28.0.0

environmental:

Substrate Dependencies

and std of scale-info, sp-api ^26.0.0, sp-core ^28.0.0, sp-io ^30.0.0, sp-runtime ^31.0.0, sp-std, wasmi, staging-xcm ^7.0.0, optional rand, and optional wasm-instrument

wasm-instrument:

Only used in benchmarking to generate contract code

try-runtime

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

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 ^28.0.0, frame-support ^28.0.0, frame-system ^28.0.0, pallet-balances ^28.0.0, sp-runtime ^31.0.0, and staging-xcm-builder ^7.0.0

Affects 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, 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?

Enables frame-benchmarking ^28.0.0

pallet-balances runtime-benchmarks? try-runtime?

Enables pallet-balances ^28.0.0