Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Drop the unused avif feature from the image dependency (#60897)

Karsten8e06c323ae06
diff --git a/Cargo.lock b/Cargo.lock
index 0a391ab0855..5fec34525d9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8938,7 +8938,6 @@ dependencies = [
"qoi",
"ravif",
"rayon",
- "rgb",
"tiff",
"zune-core",
"zune-jpeg",
diff --git a/Cargo.toml b/Cargo.toml
index c657ff1aefb..90eb3c0c4ee 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -617,7 +617,25 @@ http-body = "1.0"
httparse = "1.10"
idna = "1.0"
ignore = "0.4.22"
-image = "0.25.1"
+# image's default features minus "avif", which only adds an encoder (rav1e);
+# decoding AVIF would additionally need the non-default "avif-native" feature.
+image = { version = "0.25.1", default-features = false, features = [
+ "bmp",
+ "dds",
+ "exr",
+ "ff",
+ "gif",
+ "hdr",
+ "ico",
+ "jpeg",
+ "png",
+ "pnm",
+ "qoi",
+ "rayon",
+ "tga",
+ "tiff",
+ "webp",
+] }
imara-diff = "0.1.8"
indexmap = { version = "2.7.0", features = ["serde"] }
indoc = "2"