There is a newer version of the record available.

Published January 23, 2026 | Version 0.6.2
Software Open

oxur/twyg: 0.6.2

Authors/Creators

Description

Fixed

  • Critical: Partial color configuration now works correctly
    • Added #[serde(default)] attributes to each field in the Colors struct
    • When specifying only some color fields in config (e.g., just timestamp), unspecified fields now correctly use their default colors instead of being set to None
    • Previously, partial configuration would lose colored output for unspecified fields
    • Added 13 default_* functions matching Colors::default() values
    • Added test to verify partial deserialization preserves defaults
    • Tested with real-world projects using twyg

Changed

  • Logo refresh: Added new v2 logo variants to assets
    • assets/images/v2.png - Full resolution (143KB)
    • assets/images/v2-x250.png - 250px width variant (15KB)
  • Updated tests to use TOML format instead of JSON to match real-world usage

Technical Details

  • Problem: When users set [logging.colors] with only some fields (e.g., just timestamp), serde would deserialize ALL fields, setting unspecified ones to None instead of using Default implementation
  • Solution: Per-field #[serde(default = "default_fn")] allows each field to independently fall back to its default value when not specified
  • Impact: Partial color configuration is now practical and intuitive

Files

oxur/twyg-0.6.2.zip

Files (1.1 MB)

Name Size Download all
md5:2b0dc4966f69b165714a87ae59407c8b
1.1 MB Preview Download

Additional details

Related works

Is supplement to
Software: https://github.com/oxur/twyg/tree/0.6.2 (URL)

Software