Cargo Features

[dependencies]
clap = { version = "4.5.4", default-features = false, features = ["debug", "unstable-doc", "std", "color", "help", "usage", "error-context", "suggestions", "deprecated", "derive", "cargo", "wrap_help", "env", "unicode", "string", "unstable-v5", "unstable-styles"] }
default = color, error-context, help, std, suggestions, usage

These default features are set whenever clap is added without default-features = false somewhere in the dependency tree.

debug

Enables debug messages

Enables debug of clap_builder and optional clap_derive

unstable-doc = derive

for docs.rs

Enables unstable-doc of clap_builder

std default

Used in default
support for no_std in a backwards-compatible way

Enables std of clap_builder

color default

Enables color of clap_builder

help default

Enables help of clap_builder

usage default

Enables usage of clap_builder

error-context default

Enables error-context of clap_builder

suggestions default

Enables suggestions of clap_builder

deprecated unstable-v5?

Optional
Guided experience to prepare for next breaking release (at different stages of development, this may become default)

Enables deprecated of clap_builder and optional clap_derive

derive unstable-doc?

Enables clap_derive

cargo

Disable if you're not using Cargo, enables Cargo-env-var-dependent macros

Enables cargo of clap_builder

wrap_help

Enables wrap_help of clap_builder

env

Use environment variables during arg parsing

Enables env of clap_builder

unicode

Support for unicode characters in arguments and help messages

Enables unicode of clap_builder

string

Allow runtime generated strings

Enables string of clap_builder

unstable-v5 = deprecated

In-work features

Enables unstable-v5 of clap_builder and optional clap_derive

unstable-styles

Enables unstable-styles of clap_builder