#proc-macro #clap #macro-derive #derive

macro clap_derive

Parse command line argument by defining a struct, derive crate

82 releases (stable)

new 4.5.41 Jul 9, 2025
4.5.32 Mar 10, 2025
4.5.18 Sep 20, 2024
4.5.13 Jul 31, 2024
3.0.0-beta.1 May 3, 2020

#86 in Procedural macros

Download history 3648427/week @ 2025-03-24 3173970/week @ 2025-03-31 3347796/week @ 2025-04-07 3004124/week @ 2025-04-14 2925412/week @ 2025-04-21 2871392/week @ 2025-04-28 2914071/week @ 2025-05-05 3018457/week @ 2025-05-12 3039630/week @ 2025-05-19 2714240/week @ 2025-05-26 3035866/week @ 2025-06-02 3345277/week @ 2025-06-09 3535937/week @ 2025-06-16 3476142/week @ 2025-06-23 3023689/week @ 2025-06-30 3234893/week @ 2025-07-07

13,514,774 downloads per month
Used in 18,267 crates (111 directly)

MIT/Apache

165KB
4K SLoC

clap_derive

Macro implementation for clap's derives.

docs.rs

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.

See CONTRIBUTING for more details.

Dependencies

~0.2–0.8MB
~19K SLoC