anstyle
ANSI text styling
1.0.14
680M downloads/mo
#130 most downloaded on crates.io
rust-cli/anstyle
What this package is like to depend on
Last release 5 months ago
13 Mar 2026
Ships fairly regularly
a new release about every 3 months
Most releases are documented
notes for 23 of 31 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
31 releases · first in 2022
3 releases in the last 12 months
see the full history below
Release timeline
31 releases · May 2022 to Mar 2026Releases
latest 31-
1.0.1413 Mar 2026 -
1.0.1329 Sep 2025Nothing published for this version
-
1.0.1229 Sep 2025 -
1.0.1104 Jun 2025Nothing published for this version
-
1.0.1001 Nov 2024 -
1.0.924 Oct 2024 -
1.0.825 Jul 2024Nothing published for this version
-
1.0.702 May 2024 -
1.0.605 Feb 2024Release notes
Open source →Fixes
- Ignore
Displaysettings like padding (we were inconsistent about that and generally wrong when we did it)
- Ignore
-
1.0.529 Jan 2024Release notes
Open source →Features
- Implement
DisplayforStylewhere the alternate flag is for reset - Implement
DisplayforReset
- Implement
-
1.0.428 Sep 2023 -
1.0.311 Sep 2023Release notes
Open source →Compatibility
- Update MSRV to 1.70.0
Features
- Make
Color::on_defaultconst
-
1.0.223 Aug 2023Nothing published for this version
-
1.0.120 Jun 2023Nothing published for this version
-
1.0.013 Apr 2023Release notes
Open source →Breaking Change
- Removed APIs that assume a color is a foreground color
- See instead
Color::on_default
- See instead
- Removed APIs that assume a color is a foreground color
-
0.3.517 Mar 2023 -
0.3.416 Mar 2023Release notes
Open source →Features
Anstyle::write_toto bypassDisplayoverhead
Internal
- Simplified writing of ANSI codes by writing them separately
-
0.3.316 Mar 2023 -
0.3.216 Mar 2023 -
0.3.110 Mar 2023 -
0.3.010 Mar 2023Release notes
Open source →Compatibility
- Rename
XTermColortoAnsi256Color - Rename
Color::XTermtoColor::Ansi256 - Replaced
fg_color | bg_colorwithfg_color.on(bg_color) #[must_use]was added to calls
Features
- Added
#[repr(u8)]toAnsiColor
Fixes
- Help catch API misused with
#[must_use]
Performance
#[inline]d some calls
- Rename
-
0.2.807 Mar 2023 -
0.2.707 Mar 2023 -
0.2.606 Mar 2023Release notes
Open source →Features
- Alternative underline styles
Style::render_resetfor easier use
Compatibility
MSRV updated to 1.64.0
-
0.2.509 Nov 2022 -
0.2.407 Oct 2022Nothing published for this version
-
0.2.307 Oct 2022Nothing published for this version
-
0.2.217 Aug 2022Nothing published for this version
-
0.2.119 May 2022Release notes
Open source →Features
- With
FromandPartialEq, colors andEffectsare considered equivalent ofStyle
- With
-
0.2.019 May 2022Release notes
Open source →Breaking Changes
Style::fg_color/Style::bg_colornow accept anOption<Color>
Features
no_stdsupportlet style = color | effects;support for easier construction- Added
Color::from((r, g, b))for easier creation
Fixes
- Allow clearing fg/bg colors
-
0.1.118 May 2022Release notes
Open source →<!-- next-url --> [Unreleased]: https://github.com/rust-cli/anstyle/compare/v1.0.14...HEAD [1.0.14]: https://github.com/rust-cli/anstyle/compare/v1.0.13...v1.0.14 [1.0.13]: https://github.com/rust-cli/anstyle/compare/v1.0.12...v1.0.13 [1.0.12]: https://github.com/rust-cli/anstyle/compare/v1.0.11...v1.0.12 [1.0.11]: https://github.com/rust-cli/anstyle/compare/v1.0.10...v1.0.11 [1.0.10]: https://github.com/rust-cli/anstyle/compare/v1.0.9...v1.0.10 [1.0.9]: https://github.com/rust-cli/anstyle/compare/v1.0.8...v1.0.9 [1.0.8]: https://github.com/rust-cli/anstyle/compare/v1.0.7...v1.0.8 [1.0.7]: https://github.com/rust-cli/anstyle/compare/v1.0.6...v1.0.7 [1.0.6]: https://github.com/rust-cli/anstyle/compare/v1.0.5...v1.0.6 [1.0.5]: https://github.com/rust-cli/anstyle/compare/v1.0.4...v1.0.5 [1.0.4]: https://github.com/rust-cli/anstyle/compare/v1.0.3...v1.0.4 [1.0.3]: https://github.com/rust-cli/anstyle/compare/v1.0.2...v1.0.3 [1.0.2]: https://github.com/rust-cli/anstyle/compare/v1.0.1...v1.0.2 [1.0.1]: https://github.com/rust-cli/anstyle/compare/v1.0.0...v1.0.1 [1.0.0]: https://github.com/rust-cli/anstyle/compare/v0.3.5...v1.0.0 [0.3.5]: https://github.com/rust-cli/anstyle/compare/v0.3.4...v0.3.5 [0.3.4]: https://github.com/rust-cli/anstyle/compare/v0.3.3...v0.3.4 [0.3.3]: https://github.com/rust-cli/anstyle/compare/v0.3.2...v0.3.3 [0.3.2]: https://github.com/rust-cli/anstyle/compare/v0.3.1...v0.3.2 [0.3.1]: https://github.com/rust-cli/anstyle/compare/v0.3.0...v0.3.1 [0.3.0]: https://github.com/rust-cli/anstyle/compare/v0.2.8...v0.3.0 [0.2.8]: https://github.com/rust-cli/anstyle/compare/v0.2.7...v0.2.8 [0.2.7]: https://github.com/rust-cli/anstyle/compare/v0.2.6...v0.2.7 [0.2.6]: https://github.com/rust-cli/anstyle/compare/v0.2.5...v0.2.6 [0.2.5]: https://github.com/rust-cli/anstyle/compare/v0.2.4...v0.2.5 [0.2.4]: https://github.com/rust-cli/anstyle/compare/v0.2.3...v0.2.4 [0.2.3]: https://github.com/rust-cli/anstyle/compare/v0.2.2...v0.2.3 [0.2.2]: https://github.com/rust-cli/anstyle/compare/v0.2.1...v0.2.2 [0.2.1]: https://github.com/rust-cli/anstyle/compare/v0.2.0...v0.2.1 [0.2.0]: https://github.com/rust-cli/anstyle/compare/v0.1.1...v0.2.0 [0.1.1]: https://github.com/rust-cli/anstyle/compare/6644c8911424a1451b483d39a3b415a41abfdf1b...v0.1.1