diff options
author | iximeow <me@iximeow.net> | 2024-06-23 01:59:12 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2024-06-23 01:59:12 -0700 |
commit | b6070a6fa4cde012028f6d74c94436c86d79df43 (patch) | |
tree | 127f9813f92850c758a8d8cc9f0d3158adfce5ea /CHANGELOG | |
parent | 0357471015bbbe54023a6b729d4d13361d8835b8 (diff) |
deprecate ShowContextual, document changes to colors/color_new modules
Diffstat (limited to 'CHANGELOG')
-rw-r--r-- | CHANGELOG | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -40,6 +40,27 @@ made VecSink's `records` private. instead of extracting records from the struct made VecSink is now available through the `alloc` feature flag as well as `std`. +significantly reduced `mod colored`: + generally, colorization of text is a presentation issue; `trait Colorize` + mixed formatting of data to text with how that text is presented, but that is + at odds with the same text being presented in different ways for which + colorization is not generic. for example, rendering an instruction as marked + up HTML involves coloring in an entirely different way than rendering an + instruction with ANSI sequences for a VT100-like terminal. + + the changes to `mod colored` reflect this, and rely on impls of `DisplaySink` + to know what they are displaying into and what is the correct mechanism to + present styled text. + + with this in mind: + * the module `yaxpeax_arch::color` now only exists with the `colors` feature + * removed `color::Colorize`, `color::Colored` + * `enum Colored` is closest in spirit to `enum Color` + * `trait YaxColors` no longer takes displayable types in its functions, no longer returns displayable types. + * `trait YaxColors`' sole function is as an inlining-friendly settings + mechanism for `DisplaySink` impls that care about coloring output + * dropped dependency on `crossterm` + ## 0.2.8 added an impl of `From<ReadError>` for `StandardPartialDecoderError`, matching the existing `StandardDecodeError` impl. |