11 releases (1 stable)
1.0.0 | May 4, 2024 |
---|---|
0.5.3 | May 3, 2024 |
0.4.1 | Feb 1, 2023 |
0.3.1 | Jan 30, 2023 |
0.1.0 | Jan 20, 2023 |
#578 in Rust patterns
31 downloads per month
Used in wargo
17KB
355 lines
Cargo-like printing
Easily print beautiful formatted messages like Cargo does.
Examples
use cprint::{cprint, Color};
cprint!("Using cprint crate!");
Coloration
For all signatures, you can specify the color of the title with a predefined color from the colored::Color
enum or with RGB values (r, g, b)
.
To specify the color use =>
at the end of the strings.
Macros
cprint!
andcprintln!
for printing to stdout.ceprint!
andceprintln!
for printing to stderr.cformat!
for formatting a string.
Dependencies
~0–9.5MB
~43K SLoC