All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
2.1.0 - 2024-06-10
- Add support for Windows 10 and greater.
- Add support for
TERMenvironment variable: if set todumbdisables coloured output, if set to any other value enables coloured output.NO_COLORCLICOLOR_FORCEboth override this behaviour. - Add changelog.
2.0.0 - 2024-05-13
- Add support for
std::fmt::Formatterinwrite_macros. - Environment variable
NO_COLORif set to any non-empty value will cause colouring to be disabled as recommended in no-color.org and Standard for ANSI Colors in Terminals. - Environment variable
CLICOLOR_FORCEif set to any non-empty value will cause colouring to be enabled as recommended in Standard for ANSI Colors in Terminals.NO_COLORoverridesCLICOLOR_FORCE. - If neither of the above environment variables are set to a non-empty value,
colouring will only be enabled if
stdoutis detected to be a terminal or tty. - Add
force_colourfunction to force coloured output, regardless of environment variables or terminal detection. - Add
force_no_colourfunction to disable coloured output, regardless of environment variables or terminal detection. - Add
force_colorandforce_no_coloras aliases for above functions to accommodateincorrectUS spelling. - Add
gray_macros, equivalent togrey_ones to accommodatewrongUS spelling. - Specify minimum supported Rust version as 1.70.0.
- Add examples.
- Remove dependency on
crossterm, breaking Windows support, sincecrosstermcannot support writing usingstd::fmt::Formatter.
1.1.0 - 2024-04-29
- Avoid consuming writer in
write_macros.
1.0.0 - 2024-04-28
- Provide coloured write macros, similar to
write!from the Standard Library. - Add Cargo.lock to repo.
- Update
crosstermversion.
0.7.0 - 2023-03-02
- Refactor macro implementation to use a higher level macro to generate the individual public macros.
- Update to edition 2021.
- Update
crosstermversion.
0.6.0 - 2021-03-15
- Change to MIT and Apache 2.0 licenses.
- Enable
clippy::pedanticwarnings. - Update
crosstermversion.
0.5.0 - 2020-03-18
- Add macros prefixed with
e_for writing tostderr.
0.4.0 - 2020-02-25
- Swap
termcrate forcrossterm. - Renamed
dark_whitemacros togreyin line withcrosstermnaming. - Renamed
dark_blackmacros toblackin line withcrosstermnaming. - Renamed
blackmacros todark_greyin line withcrosstermnaming.
0.3.1 - 2020-02-25
- Update
termversion. - Update formatting options.
0.3.0 - 2019-04-12
- Update
lazy_staticversion. - Update
termversion.
0.2.1 - 2018-02-01
- Update
lazy_staticversion.
0.2.0 - 2017-04-09
- Add
allow(useless_format)to disable Clippy lint.
0.1.0 - 2017-04-09
- Initial set of coloured macros.