31 releases (15 stable)

1.0.14 Mar 13, 2026
1.0.13 Sep 29, 2025
1.0.11 Jun 4, 2025
1.0.10 Nov 1, 2024
0.2.1 May 19, 2022

#19 in Command-line interface

Download history 6567296/week @ 2026-01-21 6662426/week @ 2026-01-28 7061792/week @ 2026-02-04 6952616/week @ 2026-02-11 7080910/week @ 2026-02-18 7828915/week @ 2026-02-25 8766930/week @ 2026-03-04 9233017/week @ 2026-03-11 8933773/week @ 2026-03-18 9388747/week @ 2026-03-25 9065602/week @ 2026-04-01 9892039/week @ 2026-04-08 9972134/week @ 2026-04-15 10647864/week @ 2026-04-22 10793016/week @ 2026-04-29 12032488/week @ 2026-05-06

45,297,697 downloads per month
Used in 46,740 crates (331 directly)

MIT/Apache

52KB
1K SLoC

anstyle

ANSI text styling

A portmanteau of "ansi style"

Documentation License Crates Status

anstyle provides core types describing ANSI styling escape codes for interoperability between crates. For example, this would allow a crate to provide an API for customizing the colors used without putting the underlying text styling crate in the API.

For integration with your text styling crate, see:

General utilities:

License

Licensed under either of

at your option.

Contribute

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.

No runtime deps