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

#6 in Cargo plugins

Download history 32148/week @ 2024-10-30 36136/week @ 2024-11-06 36592/week @ 2024-11-13 36956/week @ 2024-11-20 39409/week @ 2024-11-27 41847/week @ 2024-12-04 41619/week @ 2024-12-11 31708/week @ 2024-12-18 25345/week @ 2024-12-25 32943/week @ 2025-01-01 42529/week @ 2025-01-08 45456/week @ 2025-01-15 47123/week @ 2025-01-22 46871/week @ 2025-01-29 47596/week @ 2025-02-05 40351/week @ 2025-02-12

189,062 downloads per month
Used in 122 crates (78 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–2MB
~36K SLoC