Crates.io | kolorz |
lib.rs | kolorz |
version | |
source | src |
created_at | 2023-06-27 02:43:54.496504+00 |
updated_at | 2025-02-21 23:38:04.969826+00 |
description | A silly little library for printing kolored text to the terminal |
homepage | |
repository | https://github.com/dotzenith/kolorz.rs |
max_upload_size | |
id | 900923 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
kolorz is a silly little library for printing kolored text to the terminal
Add kolorz to your project's Cargo.toml
:
[dependencies]
kolorz = "0.10.0"
// print kolored text
use kolorz::Kolor;
fn main() {
let mocha = Kolor::new("catppuccin mocha");
println!("{}", mocha.red("This is red"));
}
// custom kolorz from hex
use kolorz::HexKolorize;
fn main() {
println!("{}", "This is peach".kolorize("#fab387"));
}
// custom kolorz from RGB
use kolorz::RGBKolorize;
fn main() {
println!("{}", "This is red".kolorize((235, 160, 172)));
}
0.10.1 - Update Rust edition