#clap #cargo #cargo-metadata #cli

no-std clap-cargo-extra

Tool to extend clap cargo adding some useful functions

3 releases (breaking)

0.3.0 Aug 3, 2023
0.2.0 Nov 17, 2022
0.1.0 Jul 13, 2022

#20 in #cargo-metadata

Download history 39/week @ 2024-04-03 2/week @ 2024-04-10 2/week @ 2024-04-17 7/week @ 2024-04-24 2/week @ 2024-05-01 5/week @ 2024-05-15 10/week @ 2024-05-22 6/week @ 2024-05-29 15/week @ 2024-06-05 57/week @ 2024-06-12 91/week @ 2024-06-19 7/week @ 2024-06-26 4/week @ 2024-07-03 131/week @ 2024-07-10 62/week @ 2024-07-17

208 downloads per month
Used in 4 crates (3 directly)

MIT license

17KB
416 lines

clap-cargo-extra

Extends clap-cargo to provide extra functionality for inspecting cargo metadata from CLI.


lib.rs:

Simple Wrapper around clap cargo that adds some utilities to access the metadata

# use clap::Parser;
# use crate::ClapCargo;

pub struct ArgStruct {
  #[clap(flatten)]
  pub cargo: ClapCargo,
}

Dependencies

~2.2–3MB
~57K SLoC