#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

#31 in #cargo-metadata

23 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–3MB
~57K SLoC