Closed mrquantumoff closed 2 years ago
This doesn't work for me, Error: cannot find 'CustomColor' in this scope.
Using colored = "2"
in Cargo.toml
and having imported with use colored::*;
Because there is no stable release with this feature
You can reference this repository to get the latest code:
colored = { git = "https://github.com/mackwic/colored" }
Now you can create a color using something like this
To Implement this I added a new struct called
CustomColor
, and a module calledcustomcolors
with a bit of implementation in it and then modifiedsrc/lib.rs
file to addcustom_color
in it.