30 releases (14 stable)

1.0.13 Sep 29, 2025
1.0.11 Jun 4, 2025
1.0.10 Nov 1, 2024
1.0.8 Jul 25, 2024
0.2.1 May 19, 2022

#26 in Command-line interface

Download history 5461779/week @ 2025-10-27 5655965/week @ 2025-11-03 5467307/week @ 2025-11-10 5809953/week @ 2025-11-17 4589484/week @ 2025-11-24 5588127/week @ 2025-12-01 5848308/week @ 2025-12-08 5601612/week @ 2025-12-15 3175371/week @ 2025-12-22 3162529/week @ 2025-12-29 5654875/week @ 2026-01-05 6192699/week @ 2026-01-12 6205738/week @ 2026-01-19 6596932/week @ 2026-01-26 6983021/week @ 2026-02-02 7247044/week @ 2026-02-09

27,470,938 downloads per month
Used in 35,445 crates (275 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