From 6652e023849479291fc93d59d379d495b8b540e5 Mon Sep 17 00:00:00 2001 From: "Sergey \"Shnatsel\" Davidoff" Date: Wed, 24 Jul 2024 15:27:21 +0100 Subject: [PATCH] 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. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b87b2f8..e32bffa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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]