colored
The most simple way to add colors in your terminal
3.1.1
216M downloads/mo
#470 most downloaded on crates.io
mackwic/colored
What this package is like to depend on
Last release 7 months ago
16 Jan 2026
Ships unpredictably
gaps range from 1 weeks to 3.0 years
Most releases are documented
notes for 29 of 33 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
33 releases · first in 2016
1 release in the last 12 months
see the full history below
Release timeline
33 releases · Mar 2016 to Jan 2026Releases
latest 33-
3.1.116 Jan 2026 -
3.0.007 Jan 2025Release notes
Open source →- [BREAKING CHANGE]: Upgrade MSRV to 1.80 and remove the then unnecessary lazy_static dependency.
Release notes
Open source →- [BREAKING CHANGE]: Upgrade MSRV to 1.80 and remove the then unnecessary lazy_static dependency.
-
2.2.015 Dec 2024Release notes
Open source →2.2.0 (#186)
* Update to 2.2.0
* Resolve clippy warnings
Warnings added in a later version of clippy.
Release notes
Open source →- Updated top-level docs to include a note about
ColoredString's role in theColorizepipeline as well as link to it to suggest learning more about how to manipulate existingColoredString's. - Changes to
ColoredString:- Expose fields.
- [DEPRECATION]: Deprecated methods
fgcolor,bgcolor, andstyledue to their obsolescence in the face of the exposing of their represented fields. - Add methods for clearing specific elements of
fgcolor,bgcolor, andstyle. - Change Default implementation to be via derive as Style now implements Default (see changes to Style below).
- Add implementation of
DerefMut. - Updated docs to reflect the above changes as well as generally greatly expand them.
- Changes to
Style:- Implemented
DefaultforStyle(returnsCLEAR). This exposes a method by which users can create plainStyle's from scratch. - Implemented
From<Styles>forStyle. This lets users easily createStyle's from specific styles. - Exposed previously private method
add. - Created method
removewhich essentially does the opposite. - Added builder-style methods in the vein of
Colorizeto add stylings (e.g.bold,underline,italic,strikethrough). - Implemented bitwise operators
BitAnd,BitOr,BitXor, andNotas well as their representative assignment operators. You can also use aStylesas an operand for these. - Implemented
FromIterator<Styles>for Style.
- Implemented
- Changes to
Styles:- Implemented bitwise operators
BitAnd,BitOr,BitXor, andNotwhich all combineStyles's and outputStyle's. These can also take aStyleas an operand.
- Implemented bitwise operators
- Added additional testing for all of the above changes.
- Added methods
with_styleandwith_color_and_styletoColorize.
- Updated top-level docs to include a note about
-
2.1.010 Dec 2023Release notes
Open source →What's Changed
- Impl From for ColoredString by @mahor1221 in #126
- Allow conversion from ColoredString to Error by @spenserblack in #86
- Suggestion for minor documentation clarification by @jonasbn in #98
- Remove unnecessary is_terminal dependency by @Oakchris1955 in #149
New Contributors
- @mahor1221 made their first contribution in #126
- @jonasbn made their first contribution in #98
- @Oakchris1955 made their first contribution in #149
Full Changelog: v2.0.4...v2.1.0
Release notes
Open source →- Impl From<String> for ColoredString by @mahor1221 in https://github.com/colored-rs/colored/pull/126
- Allow conversion from ColoredString to Error by @spenserblack in https://github.com/colored-rs/colored/pull/86
- Suggestion for minor documentation clarification by @jonasbn in https://github.com/colored-rs/colored/pull/98
- Remove unnecessary is_terminal dependency by @Oakchris1955 in https://github.com/colored-rs/colored/pull/149
- Document crate MSRV of
1.70.
- Document crate MSRV of
-
2.0.405 Jul 2023 -
2.0.305 Jul 2023 -
2.0.205 Jul 2023 -
2.0.103 Jul 2023Release notes
Open source →- Add edition for future compatibility.
- Implement custom colors that can be stored in a variable.
Release notes
Open source →- Add edition for future compatibility.
- Implement custom colors that can be stored in a variable.
-
2.0.014 Jul 2020Release notes
Open source →- Add support for true colours.
- Alter
Colorinterface to returnCow<'static, str>
-
1.9.424 Jul 2023 -
1.9.324 Feb 2020 -
1.9.210 Jan 2020Release notes
Open source →- Exposed
ColoredStringdata through methods for purposes of interrogating the applied colours. - Increased documentation.
- Exposed
-
1.9.131 Dec 2019Release notes
Open source →- Remove deprecated
try!macro in codebase - Reduce allocations in
ColoredStringimpl (PR#65) - Added
"purple"as match inimpl FromStr for Color(PR#71)
- Remove deprecated
-
1.9.011 Nov 2019Release notes
Open source →- [POSSIBLE_BREAKING CHANGE]: Replace
winconsolewithwinapi:- Changes
set_virtual_terminalfunction signature.
- Changes
- Update dependencies
- Add Dockerfile
- Respect tty discovery for CLICOLOR
- [POSSIBLE_BREAKING CHANGE]: Replace
-
1.8.030 Apr 2019 -
1.7.005 Jan 2019Release notes
Open source →- TECH: update lazy_static
- FEAT: introduce respect for the
NO_COLORenvironment variable
-
1.6.109 Jul 2018 -
1.6.031 Oct 2017Release notes
Open source →- FEAT: introduced bright colors.
"hello".bright_blue().on_bright_red(); - FEAT: introduced strikethrough styling.
"hello".strikethrough();
- FEAT: introduced bright colors.
-
1.5.328 Sep 2017Release notes
Open source →- FEAT: derive Copy and Clone for
Color - FEAT: derive Clone for
ColoredString
- FEAT: derive Copy and Clone for
-
1.5.206 Jul 2017Release notes
Open source →- FIX: method
Colorize::reversedhas been added.Colorize::reversewas a typo, that we will keep for compatibility
- FIX: method
-
1.5.109 May 2017 -
1.5.001 May 2017 -
1.4.105 Mar 2017Nothing published for this version
-
1.4.018 Dec 2016Nothing published for this version
-
1.3.226 Nov 2016 -
1.3.114 Oct 2016 -
1.3.031 Jul 2016Release notes
Open source →- Provide various options for disabling the coloring in an API-compatible way
-
1.2.030 Mar 2016 -
1.1.228 Mar 2016Nothing published for this version
-
1.1.128 Mar 2016Nothing published for this version
-
1.1.015 Mar 2016 -
1.0.114 Mar 2016Release notes
Open source →- Add a CHANGLOG
- Fix crate dependencies: move
ansi_termin dev_dependencies
-
1.0.013 Mar 2016