Cargo Features

[dependencies]
pallet-xcm = { version = "17.0.1", 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, tracing, staging-xcm, staging-xcm-builder, staging-xcm-executor, and xcm-runtime-apis

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, staging-xcm-executor, and xcm-runtime-apis

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?