Cargo Features

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

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

std default = serde

Enables std of bounded-collections, parity-scale-codec, optional frame-benchmarking, frame-support, frame-system, log, pallet-balances, scale-info, sp-core, sp-io, sp-runtime, sp-std, staging-xcm, staging-xcm-builder, staging-xcm-executor, and xcm-fee-payment-runtime-api

frame-benchmarking:

marked optional, used in benchmarking

try-runtime

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

runtime-benchmarks

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

Affects pallet-xcm::benchmarking, mock::XcmBenchmarkHelper, mock::TestDeliveryHelper

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?
pallet-balances runtime-benchmarks? std try-runtime?