I just fixed/updated the rust-tre package in Debian Unstable. Since in Debian we try to avoid multiple versions of the same crate this involved patching the lscolors dependency to version 0.10.
After patching the dependency the build failed due to new "bright" colors being added to lscolors::style::Color (aka lscolors::Color), these do not appear to have any direct equivilents in termcolor::Color.
lscolors offers a converter to convert it's values to ansi-term colors, in that converter the new colors are converted to numbered "ansi 256" colors, I did the same for the converter in tre-command.
I just fixed/updated the rust-tre package in Debian Unstable. Since in Debian we try to avoid multiple versions of the same crate this involved patching the lscolors dependency to version 0.10.
After patching the dependency the build failed due to new "bright" colors being added to lscolors::style::Color (aka lscolors::Color), these do not appear to have any direct equivilents in termcolor::Color.
lscolors offers a converter to convert it's values to ansi-term colors, in that converter the new colors are converted to numbered "ansi 256" colors, I did the same for the converter in tre-command.
A patch can be found at https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/tre-command/debian/patches/lscolors-0.10.diff