21 releases (13 breaking)

new 0.14.1 Jul 25, 2024
0.14.0 Feb 6, 2024
0.13.0 Oct 2, 2023
0.10.0 Sep 28, 2022
0.1.4 May 23, 2019

#8 in Cargo plugins

Download history 16000/week @ 2024-04-04 15595/week @ 2024-04-11 15420/week @ 2024-04-18 17939/week @ 2024-04-25 17374/week @ 2024-05-02 17300/week @ 2024-05-09 18902/week @ 2024-05-16 17893/week @ 2024-05-23 19584/week @ 2024-05-30 17336/week @ 2024-06-06 18195/week @ 2024-06-13 17602/week @ 2024-06-20 16612/week @ 2024-06-27 17222/week @ 2024-07-04 16845/week @ 2024-07-11 14903/week @ 2024-07-18

68,479 downloads per month
Used in 73 crates (36 directly)

MIT/Apache

34KB
566 lines

clap-cargo

Re-usable CLI flags for cargo plugins

codecov Documentation License Crates Status

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
~37K SLoC