rustc/vendor/yansi-1.0.1
2024-11-29 22:33:13 +01:00
..
src New upstream version 1.83.0+dfsg1 2024-11-29 22:33:13 +01:00
tests New upstream version 1.83.0+dfsg1 2024-11-29 22:33:13 +01:00
.cargo-checksum.json New upstream version 1.83.0+dfsg1 2024-11-29 22:33:13 +01:00
Cargo.toml New upstream version 1.83.0+dfsg1 2024-11-29 22:33:13 +01:00
LICENSE-APACHE New upstream version 1.83.0+dfsg1 2024-11-29 22:33:13 +01:00
LICENSE-MIT New upstream version 1.83.0+dfsg1 2024-11-29 22:33:13 +01:00
README.md New upstream version 1.83.0+dfsg1 2024-11-29 22:33:13 +01:00

yansi logo  Yansi

A dead simple ANSI terminal color painting library.

Build Status Current Crates.io Version Documentation

Usage

In your Cargo.toml:

[dependencies]
yansi = "1.0"

In your source code:

use yansi::Paint;

println!("Testing, {}, {}, {}!",
    "Ready".bold(),
    "Set".black().on_yellow().invert().italic(),
    "STOP".white().on_red().bright().underline().bold());

> Testing, Ready, Set, STOP!

See the rustdocs for complete usage details.

Features

Why yet another ANSI terminal coloring library? Here are some reasons:

License

yansi is licensed under either of the following, at your option: