Do not pull in all of image dependencies when it's enabled

Add `default-features=false` to `image` dependency so that pulling in `image` does not automatically enable *all* the default formats and also rayon for `image` crate.

Without this change `image` pulls in a very large amount of dependencies.
This commit is contained in:
Sergey "Shnatsel" Davidoff
2024-07-24 15:27:21 +01:00
committed by GitHub
parent 3d79c1e54f
commit 6652e02384
+1 -1
View File
@@ -25,7 +25,7 @@ num-traits = "0.2.19"
thiserror = "1.0"
document-features = "0.2.10"
# Optional dependencies
image = { version = "0.25.1", optional = true }
image = { version = "0.25.1", optional = true, default-features = false }
bytemuck = { version = "1.16", optional = true }
[features]