Code doesn't compile with only png and jpeg enabled
Closed this issue · 2 comments
emoon commented
Hi,
If I use the following
zune-image = { version = "0.4", default-features = false, features = ["jpeg", "png"] }
The code doesn't compile with the following error
--> /home/emoon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zune-image-0.4.15/src/codecs/png.rs:13:5
|
13 | use exif::experimental::Writer;
| ^^^^ use of undeclared crate or module `exif`
error[E0282]: type annotations needed for `std::io::Cursor<Vec<_>>`
--> /home/emoon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zune-image-0.4.15/src/codecs/png.rs:176:13
|
176 | let mut buf = std::io::Cursor::new(vec![]);
| ^^^^^^^
|
help: consider giving `buf` an explicit type, where the placeholders `_` are specified
|
176 | let mut buf: std::io::Cursor<Vec<_>> = std::io::Cursor::new(vec![]);
| +++++++++++++++++++++++++
If I enable the default-features
it works.
etemesi254 commented
duplicate of
fixed, and tried adding the ci check in https://github.com/etemesi254/zune-image/blob/dev/.github/workflows/image_features.yml, but I think it's not yet running
I couldn't push a release because I have been overhauling the read and write api to support arbitrary streams for a 0.5
and I can spend my time on as much sadly.
Nb, just add metadata
feature no need to enable all features
emoon commented
Thanks!