#no-std #terminal #ansi

no-std concolor-clap

Clap mixin to control console colors

15 releases

0.1.0 Mar 8, 2023
0.0.13 Nov 24, 2022
0.0.10 Mar 23, 2022
0.0.7 Dec 31, 2021
0.0.6 Oct 6, 2021

#81 in #ansi

Download history 143151/week @ 2025-09-24 128313/week @ 2025-10-01 88722/week @ 2025-10-08 106593/week @ 2025-10-15 114463/week @ 2025-10-22 119032/week @ 2025-10-29 124415/week @ 2025-11-05 130064/week @ 2025-11-12 121326/week @ 2025-11-19 34238/week @ 2025-11-26 20900/week @ 2025-12-03 20430/week @ 2025-12-10 17702/week @ 2025-12-17 4991/week @ 2025-12-24 12277/week @ 2025-12-31 24323/week @ 2026-01-07

63,131 downloads per month
Used in 11 crates

MIT/Apache

26KB
366 lines

Mixin a clap argument for colored output selection

Examples

// ...
#[derive(Debug, clap::Parser)]
#[clap(color = concolor_clap::color_choice())]
struct Cli {
    #[command(flatten)]
    color: concolor_clap::Color,
}

Features

  • auto (default): Automatically detect color support

concolor-clap

Convenience helper for working with clap

Documentation License Crates Status

Contribute

License

Dual-licensed under MIT or Apache 2.0

Dependencies

~1–3.5MB
~64K SLoC