Deps: build image without its AVIF encoder

e6073aa · Gabriel Morell · 2026-10-23 05:55

2 files +8 -2
Message
{commit_body(@commit)}

Files changed

modified Cargo.lock
+0 −1
@@ -2103,7 +2103,6 @@ dependencies = [
2103 2103 "qoi",
2104 2104 "ravif",
2105 2105 "rayon",
2106 − "rgb",
2107 2106 "tiff",
2108 2107 "zune-core",
2109 2108 "zune-jpeg",
modified Cargo.toml
+8 −1
@@ -52,7 +52,14 @@ serde_json = "1.0.145"
52 52 lapin = "2.5"
53 53 futures-util = "0.3"
54 54 tokio-util = { version = "0.7", features = ["io"] }
55 −image = "0.25"
55 +# image's defaults minus "avif": that feature is ravif's AVIF *encoder*
56 +# (thumbnails are written as JPEG), and it pulled in rav1e and the
57 +# unmaintained paste with it. Reading AVIF would be "avif-native", which
58 +# was never on.
59 +image = { version = "0.25", default-features = false, features = [
60 + "rayon", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png",
61 + "pnm", "qoi", "tga", "tiff", "webp",
62 +] }
56 63 mime = "0.3"
57 64 mime_guess = "2.0"
58 65 async-trait = "0.1"

Parents: 109bdea