Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

perf: drop image's unused AVIF encoder from the desktop binaries

LukeParkerDev93f45b9f381a
diff --git a/Cargo.lock b/Cargo.lock
index 40746da6c..af9f16909 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5085,7 +5085,6 @@ dependencies = [
"qoi",
"ravif",
"rayon",
- "rgb",
"tiff 0.10.3",
"zune-core",
"zune-jpeg",
diff --git a/apps/cli/Cargo.toml b/apps/cli/Cargo.toml
index b66b0c7ae..195534978 100644
--- a/apps/cli/Cargo.toml
+++ b/apps/cli/Cargo.toml
@@ -30,7 +30,7 @@ flume = { workspace = true }
futures = { workspace = true }
dirs = "6.0.0"
include_dir = "0.7"
-image = "0.25.2"
+image = { version = "0.25.2", default-features = false, features = ["rayon", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp"] }
chrono = "0.4.31"
base64 = "0.22.1"
keyring = "4.1.5"
diff --git a/apps/desktop-gpui/Cargo.lock b/apps/desktop-gpui/Cargo.lock
index ecfb0d213..ffd6996aa 100644
--- a/apps/desktop-gpui/Cargo.lock
+++ b/apps/desktop-gpui/Cargo.lock
@@ -5395,7 +5395,6 @@ dependencies = [
"qoi",
"ravif",
"rayon",
- "rgb",
"tiff 0.11.3",
"zune-core 0.5.3",
"zune-jpeg 0.5.15",
diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.toml
index 1574732aa..a5572b819 100644
--- a/apps/desktop/src-tauri/Cargo.toml
+++ b/apps/desktop/src-tauri/Cargo.toml
@@ -50,7 +50,7 @@ specta.workspace = true
specta-typescript = "0.0.7"
tokio = { workspace = true, features = ["signal"] }
uuid = { version = "1.10.0", features = ["v4"] }
-image = "0.25.2"
+image = { version = "0.25.2", default-features = false, features = ["rayon", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp"] }
futures-intrusive = "0.5.0"
anyhow.workspace = true
futures = { workspace = true }
diff --git a/crates/editor/Cargo.toml b/crates/editor/Cargo.toml
index 6b4c98dc1..0ac88092f 100644
--- a/crates/editor/Cargo.toml
+++ b/crates/editor/Cargo.toml
@@ -37,7 +37,7 @@ ffmpeg.workspace = true
specta.workspace = true
serde = { workspace = true }
serde_json = "1.0"
-image = "0.25.2"
+image = { version = "0.25.2", default-features = false, features = ["rayon", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp"] }
tempfile = "3"
sentry.workspace = true
futures = { workspace = true }
diff --git a/crates/export/Cargo.toml b/crates/export/Cargo.toml
index 3e2678a77..b1cae02e4 100644
--- a/crates/export/Cargo.toml
+++ b/crates/export/Cargo.toml
@@ -16,7 +16,7 @@ cap-media-info = { path = "../media-info" }
tokio.workspace = true
tempfile = "3.12.0"
-image = "0.25.2"
+image = { version = "0.25.2", default-features = false, features = ["rayon", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp"] }
base64 = "0.22.1"
mp4 = "0.14.0"
thiserror.workspace = true
diff --git a/crates/recording/Cargo.toml b/crates/recording/Cargo.toml
index 3cd5ce44f..20f858ac0 100644
--- a/crates/recording/Cargo.toml
+++ b/crates/recording/Cargo.toml
@@ -46,7 +46,7 @@ chrono = "0.4.38"
uuid = { version = "1.18.1", features = ["v4"] }
tracing.workspace = true
device_query = "4.0.1"
-image = "0.25.2"
+image = { version = "0.25.2", default-features = false, features = ["rayon", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp"] }
either = "1.13.0"
tracing-subscriber = { version = "0.3.19" }
relative-path = "1.9.3"
diff --git a/crates/rendering/Cargo.toml b/crates/rendering/Cargo.toml
index 8166d4860..cce5010de 100644
--- a/crates/rendering/Cargo.toml
+++ b/crates/rendering/Cargo.toml
@@ -21,7 +21,7 @@ ffmpeg.workspace = true
futures = { workspace = true }
futures-intrusive = "0.5.0"
rayon = "1.10"
-image = "0.25.2"
+image = { version = "0.25.2", default-features = false, features = ["rayon", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp"] }
log = "0.4"
serde = { workspace = true }
serde_json = "1.0"