| Crates.io | colorline |
| lib.rs | colorline |
| version | 0.2.0 |
| created_at | 2025-12-19 20:23:07.778293+00 |
| updated_at | 2026-01-16 20:32:15.561058+00 |
| description | Text coloring in Rust for terminals. Minimal and easy to use. |
| homepage | |
| repository | https://github.com/Pjdur/colorline |
| max_upload_size | |
| id | 1995456 |
| size | 6,566 |
Text coloring in Rust for terminals
Colorline provides a simple trait for Rust strings, letting you call methods like .red() or .blue() directly.
It is designed to stay minimal and easy to use.
Supported colors:
use colorline::Style;
fn main() {
println!("{}", "Error".red());
println!("{}", "Success".green());
println!("{}", "Note".cyan());
}
There are already crates for coloring text in Rust, like colored, which is similar to colorline.
Colorline exists because I wanted something smaller and simpler: