Cargo Features

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

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

std default

Enables std of sp-runtime and sp-std

sp-runtime:

Needed for various traits. In our case, OnFinalize.

and std of frame-system, log, scale-info, and sp-core

frame-system:

system module provides us with all sorts of useful stuff and macros depend on it being around.

and std of parity-scale-codec, frame-support, and optional frame-benchmarking

frame-support:

Needed for type-safe access to storage DB.

try-runtime

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

runtime-benchmarks

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

Affects pallet-assets::benchmarking, pallet-assets::pallet.BenchmarkHelper

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.

frame-benchmarking runtime-benchmarks?