#cargo #clap #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

#26 in #cargo-metadata

Download history 109/week @ 2024-06-15 17/week @ 2024-06-22 2/week @ 2024-06-29 32/week @ 2024-07-06 143/week @ 2024-07-13 39/week @ 2024-07-20 44/week @ 2024-07-27 5/week @ 2024-08-03 6/week @ 2024-08-17 4/week @ 2024-08-24 3/week @ 2024-09-14 78/week @ 2024-09-21 22/week @ 2024-09-28

103 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
~58K SLoC