24 releases (14 breaking)

0.15.2 Jan 14, 2025
0.14.1 Jul 25, 2024
0.14.0 Feb 6, 2024
0.13.0 Oct 2, 2023
0.1.4 May 23, 2019

#4 in Cargo plugins

Download history 36836/week @ 2024-11-21 40457/week @ 2024-11-28 41545/week @ 2024-12-05 40856/week @ 2024-12-12 29266/week @ 2024-12-19 24865/week @ 2024-12-26 35836/week @ 2025-01-02 46155/week @ 2025-01-09 43377/week @ 2025-01-16 48347/week @ 2025-01-23 45446/week @ 2025-01-30 49236/week @ 2025-02-06 48876/week @ 2025-02-13 59543/week @ 2025-02-20 48341/week @ 2025-02-27 43820/week @ 2025-03-06

209,825 downloads per month
Used in 131 crates (83 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–1.9MB
~36K SLoC