#clap-parser #proc-macro #clap #derive #cli-parser

macro clap_derive

Parse command line argument by defining a struct, derive crate

80 releases (stable)

4.5.32 Mar 10, 2025
4.5.24 Jan 7, 2025
4.5.18 Sep 20, 2024
4.5.13 Jul 31, 2024
3.0.0-beta.1 May 3, 2020

#69 in Procedural macros

Download history 2565719/week @ 2024-12-08 2259225/week @ 2024-12-15 1166184/week @ 2024-12-22 1352825/week @ 2024-12-29 2504186/week @ 2025-01-05 2583845/week @ 2025-01-12 2355725/week @ 2025-01-19 2449334/week @ 2025-01-26 2815979/week @ 2025-02-02 2892182/week @ 2025-02-09 2870972/week @ 2025-02-16 2926593/week @ 2025-02-23 3228010/week @ 2025-03-02 3423006/week @ 2025-03-09 3670253/week @ 2025-03-16 3506951/week @ 2025-03-23

14,038,270 downloads per month
Used in 15,894 crates (100 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.9MB
~20K SLoC