cargo-caps 0.0.1

Audit what a crate is capable of by analyzing what linker symbols it emits
Documentation
use cargo_caps::Commands;
use clap::Parser as _;

#[derive(clap::Parser)]
#[command(name = "cargo-caps")]
#[command(about = "A tool for analyzing capabilities")]
struct Args {
    #[clap(subcommand)]
    command: Commands,
}

fn main() -> anyhow::Result<()> {
    let args = Args::parse();

    match args.command {
        Commands::Build(check_cmd) => check_cmd.execute(),
        Commands::Caps(caps_cmd) => caps_cmd.execute(),
        Commands::Init(init_cmd) => init_cmd.execute(),
        Commands::Symbols(symbols_cmd) => symbols_cmd.execute(),
    }
}