Closed davisschenk closed 2 years ago
Thanks for the issue and sorry for the confusion. I never got around to publishing a version of the crate with palette 0.6
support even though it's been sitting in the repo. I've pushed that out after #49 and the following runs now with kmeans_colors = 0.5.0
.
main.rs
and Cargo.toml
Usually when you get that kind of error about a trait not being implemented that you know exists, there's a good chance it's an issue like this with conflicting crate versions. You can check the Cargo.lock
file of your project and see what version a crate is dependent on. Since the third party crate is part of the public API of this one and you can't mix multiple versions of a crate (palette 0.5
and palette 0.6
) in a project, it's good that you filed this issue so I could update. As you noticed, it worked with 0.5
but not 0.6
which confused me as well for a few minutes until I realized what happened.
Thanks! Got everything working now! Love the project and appreciate the explanation on why it wasn't working and the tip for looking at Cargo.lock
!
Hello, I've noticed an interesting bug when attempting to use this library with the palette feature enabled. Everything appears to work great when using palette 0.6 but when I attempt to use palette 0.5 I get trait not implemented for Calculate and Hamerly on Lab.
This is main.rs
and Cargo.toml
This works well, but once you change the palette version to 0.6 and update the code for generating the vector of colors it no longer functions as expected.