Registry / cli / anstyle

anstyle

JSON →
library1.0.14rscratesunverified

ANSI text styling library for terminal output formatting.

# Cargo.toml [dependencies] anstyle = "1.0.14"
INSTALL
IMPORT
SIG · ANSTYLE
A
anstyle
clirustv1.0.14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Style
use anstyle::Style;

Demonstrates creating an ANSI style and applying it to text.

use anstyle::Style; fn main() { let style = Style::new().bold().fg_color(Some(anstyle::AnsiColor::Red.into())); println!("{}Hello, world!{}", style.render(), style.render_reset()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.14latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
43 hits · last 30 days
node
36
OpenAI (training)
1
Resources
anstyle — cargo add anstyle · libregistry