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

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

#67 in Procedural macros

Download history 1155010/week @ 2024-12-23 1343817/week @ 2024-12-30 2542286/week @ 2025-01-06 2585349/week @ 2025-01-13 2353780/week @ 2025-01-20 2442778/week @ 2025-01-27 2849632/week @ 2025-02-03 2866514/week @ 2025-02-10 2889921/week @ 2025-02-17 2921440/week @ 2025-02-24 3232148/week @ 2025-03-03 3450345/week @ 2025-03-10 3702907/week @ 2025-03-17 3648427/week @ 2025-03-24 3175018/week @ 2025-03-31 3348810/week @ 2025-04-07

14,090,742 downloads per month
Used in 16,192 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