20 releases (13 breaking)

0.14.0 Feb 6, 2024
0.13.0 Oct 2, 2023
0.12.0 Sep 11, 2023
0.10.0 Sep 28, 2022
0.1.4 May 23, 2019

#15 in Cargo plugins

Download history 9539/week @ 2023-12-23 9665/week @ 2023-12-30 14594/week @ 2024-01-06 13838/week @ 2024-01-13 17399/week @ 2024-01-20 15291/week @ 2024-01-27 15357/week @ 2024-02-03 15852/week @ 2024-02-10 15235/week @ 2024-02-17 14609/week @ 2024-02-24 15449/week @ 2024-03-02 15080/week @ 2024-03-09 15654/week @ 2024-03-16 14875/week @ 2024-03-23 16388/week @ 2024-03-30 13390/week @ 2024-04-06

62,787 downloads per month
Used in 67 crates (33 directly)

MIT/Apache

29KB
560 lines

clap-cargo

Re-usable CLI flags for cargo plugins

codecov Documentation License Crates Status

Install

Add to your Cargo.toml:

[dependencies]
clap-cargo = "0.14.0"

Examples

// ...
#[derive(Debug, clap::Parser)]
struct Cli {
    #[command(flatten)]
    manifest: clap_cargo::Manifest,
    #[command(flatten)]
    workspace: clap_cargo::Workspace,
    #[command(flatten)]
    features: clap_cargo::Features,
}

Relevant crates

Other crates that might be useful for cargo plugins:

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.

Dependencies

~1.2–2MB
~38K SLoC