Skip to content

v0.2.0

Choose a tag to compare

@parneetsingh022 parneetsingh022 released this 26 May 20:18
· 50 commits to main since this release
ac67a94

Added

  • Apple Terminal Strikethrough Fallback: Implemented an automated fallback engine for macOS Terminal.app that dynamically embeds Unicode combining long stroke characters (\u{0336}) through printable text strings to resolve its native lack of \x1b[9m ANSI sequence support.

  • Zero-Allocation Lazy Evaluation: Introduced StyledRef to lazily stream ANSI text styling configurations directly to formatting targets via fmt::Display implementation, completely eliminating heap allocations on formatting passes.

Breaking Changes

  • Reference-Bound Style::apply API: The signature of Style::apply now accepts arguments by shared reference (&T) instead of taking ownership by value. Passing owned primitives or numeric constants manually now explicitly requires a reference borrow prefix (e.g., style.apply(&34) instead of style.apply(34)). Normal string literals remain unaffected as they naturally satisfy the reference type bound (&str).