Add support for `image-rs 0.24`
Since the latest version of image-rs library require Rust 1.56.0, I think that img_hash also should use Rust 2021 edition and bump minimal requirements.
For now I can't use image-rs 0.24.0, because img_hash crate cannot interoperate with this version and I have such errors(this works with 0.23)
error[E0277]: the trait bound `image::DynamicImage: Image` is not satisfied
--> czkawka_core/src/similar_images.rs:606:50
|
606 | let hash = hasher.hash_image(&image);
| ---------- ^^^^^^ the trait `Image` is not implemented for `image::DynamicImage`
| |
| required by a bound introduced by this call
For anyone wanting to use library with updated dependencies I created repo which use image 0.24.2 and have other libraries updated(logic is not changed) https://github.com/qarmin/img_hash https://crates.io/crates/image_hasher/
@qarmin : Is there any reason you chose to publish a new crate instead of contributing to this one ? I opened a pull request with your changes.
@lovasoa This crate is not very well maintained. I wish the author would add some co-maintainers. Though what worked out for me was simply using img_hash::image and then simply take the contents and construct a borrowed image from it. That way it's automatically compatible with all image versions.
@abonander , would you be open to adding some co-maintainers ?