Cargo Features

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

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

std default = serde

Enables std of parity-scale-codec, optional frame-benchmarking, frame-support, frame-system, pallet-balances, scale-info, optional sp-core, and sp-runtime

try-runtime

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

runtime-benchmarks

Enables sp-core, runtime-benchmarks of sp-runtime, runtime-benchmarks of frame-benchmarking, frame-support, frame-system, and pallet-balances

Affects tests::TEST_SPEND_ORIGIN_TRY_SUCCESFUL_ORIGIN_ERR

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
frame-benchmarking runtime-benchmarks?