Announcing color-your-life

It is my pleasure to announce the availability of color-your-life, a crate to help format data values much like std::fmt::Display does, except with an allowance for colors and styles.
The reason I wrote this library is because it can be really helpful when debugging to have colored values, especially when those values are complex types.

Details for usage are on the README at the GitHub link above.

Opinions, discussions, contributions and suggestions are welcome :slight_smile:

2 Likes

A demo screenshot or asciinema in the readme would be nice. Showing off what you can do with this. A badge linking directly to the docs would also be nice rather than the two step process via crates.io

Also, since I personally already use anstyle/anstream, it would be annoying to add a separate dependency to ansi_term (which hasn't been updated for 4 years apparently!).

I tried looking at the docs to see if the API was nice, but most of it isn't documented at all

1 Like

A screenshot is a great idea, and so is a docs.rs badge. I'll add them when I've got some time.

However that level of dependency management feels a bit more like busy work, whereas this library was born of a real world need, in a larger context.

The assumption is that the reader knows what std::fmt::Display is and how to use it.
This crate works pretty much just like that, with a couple of differences.
Those differences are explained in the README. However, it might not be a bad idea to replicate that information into the crate level docs :slight_smile:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.