Vari (Väri) is a Rust library for formatting strings with colors and cosmetic stuff to the terminal. Like Rich library for Python.
rust
[dependencies]
vari = 0.1.2
```rust fn main() { // [$/] is shorthand for [$reset] let message = vari::format("[$blue]Hello, [$green]World![$/]"); println!("{}", message);
// Custom RGB!
println!("{}", vari::format("[$[114, 119, 39]]#727727![$[66, 4, 32]] Do you see it?[$/]"));
// Style anchor!
println!("{}", vari::format("[$bold][$italic]Bold and Italic :O[$/]"));
} ```
This crate is under AGPL-3.0 license.