$ owo-colors

v4.3.0MAJOR UPDATE

Zero-allocation terminal colors that'll make people go owo

Downloads: 95.0M
Recent: 16.4M
Versions: 41
Updated: February 22, 2026

Latest Update Summary

Crate

Name: owo-colors New version: 4.3.0 Release date: 2026-02-22T22:04:11.886433Z

Crate readme

Short description A zero-allocation no_std-compatible zero-cost way to add color to your Rust terminal to make people go owo.

Long description owo-colors allows adding color to Rust terminal outputs without allocations or dependencies, supporting both std and no_std environments. It is safe and mostly works with const functions, providing basic and advanced coloring options such as truecolor support and various ANSI colors. The library is a drop-in replacement for the colored crate, making it suitable for embedded systems.

Features • no_std compatibility • Dependency-less by default • 100% safe code • Support for RGB colors • Compile-time color settings with generics

Code Examples Add to Cargo.toml

 owo-colors = "4"

Basic usage

 use owo_colors::OwoColorize;

fn main() {
    // Foreground colors
    println!("My number is {:#x}!", 10.green());
    // Background colors
    println!("My number is not {}!", 4.on_red());
}

Generic colors

 use owo_colors::OwoColorize;
use owo_colors::colors::*;

fn main() {
    // Generically color
    println!("My number might be {}!", 4.fg::<Black>().bg::<Yellow>());
}

Stylize

 use owo_colors::OwoColorize;

println!("{}", "strikethrough".strikethrough());

Only Style on Supported Terminals

 use owo_colors::{OwoColorize, Stream::Stdout};

println!(
    "{}",
    "colored blue if a supported terminal"
        .if_supports_color(Stdout, |text| text.bright_blue())
);

Linkshttps://crates.io/crates/owo-colorshttps://docs.rs/owo-colors

https://docs.rs/owo-colors https://api.github.com/repos/owo-colors/owo-colors/releases/289200104

Release info

Release version:

Release description

Code Examples

Minor update: 4.2.3 → 4.3.0

$ DOWNLOADS TREND

71.2M95.0M

$ VERSION HISTORY

v4.3.0February 22, 2026
v4.2.3September 29, 2025

$ LINKS

$ INSTALL

cargo add owo-colors

Or add to Cargo.toml: owo-colors = "4.3.0"