Crate features / clap_derive
Feature flags · clap_derive 4.6.7 · from crates.io 2026-10-24
clap_derive features: what each one does, and the line to copy
Short answerclap_derive 4.6.7 has 5 features. Nothing is on by default: turn on what you use. It needs Rust 1.85 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
debug | nothing else (a switch the code checks) | |
deprecated | nothing else (a switch the code checks) | |
raw-deprecated | deprecated | |
unstable-markdown | dep:pulldown-cmark, dep:anstyle | |
unstable-v5 | deprecated |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version clap_derive declares (rust-version), and the release that changed it:
- 3.2.0 (2022-06-13): Rust 1.56.0
- 3.2.6 (2022-06-21): Rust 1.56.1
- 4.0.0-rc.1 (2022-09-20): Rust 1.60.0
- 4.1.0 (2023-01-13): Rust 1.64.0
- 3.2.24 (2023-04-25): Rust 1.56.1
- 4.3.0 (2023-05-19): Rust 1.64.0
- 4.4.0 (2023-08-24): Rust 1.70.0
- 4.5.0 (2024-02-08): Rust 1.74
- 4.6.0 (2026-03-12): Rust 1.85
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p clap_derive --precise <version>, or use resolver 3, which picks compatible versions for you.
More on clap_derive
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2024
Up next
Next crateFeature flags for every popular crateRead it next →Also worth your time
Did this answer your question?