I'd like to nominate farben.
This is a highly underrated library that has a very nice syntax for printing to the standard output. Fantastic for scripts.
cprintln!("[bold red]Error:[/] something went wrong.");
cprintln!("[bg:blue fg:white]White on blue!");
- Supports defining custom styles.
- Has macros for printing markdown as styled output
- Very lightweight syntax.
- Automatically detects color support
- Support for tons of macros,
cformat,ceprintln,cwriteln, etc. - Has a
preludemodule so you don't have to remember to import everything you need - Has features for embedding the data directly in the formatted string at compile-time, so there's no dependencies on terminal color support detection, and no extra runtime cost.