11 releases (1 stable)

new 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

Download history 5/week @ 2024-02-16 6/week @ 2024-02-23 1/week @ 2024-03-01 6/week @ 2024-03-08 3/week @ 2024-03-15 2/week @ 2024-03-22 35/week @ 2024-03-29 8/week @ 2024-04-05 1/week @ 2024-04-12 164/week @ 2024-04-26

186 downloads per month
Used in wargo

MIT license

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

Dependencies

~0–10MB
~54K SLoC