Skip to content

Commit

Permalink
Do not pull in all of image dependencies when it's enabled
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Shnatsel authored Jul 24, 2024
1 parent 3d79c1e commit 6652e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6652e02

Please sign in to comment.