From b439d90391db56f51ab9337f75763956acaa731f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 26 Jun 2023 14:14:45 +0300 Subject: [PATCH] examples: Reduce dependencies of the thumbnail example Instead of depending on libraries for every possible image format, depend only on the JPEG and PNG libraries. Part-of: --- examples/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index aee17985c..202fb0873 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -37,7 +37,7 @@ pango = { git = "https://github.com/gtk-rs/gtk-rs-core", branch = "0.16", versio pangocairo = { git = "https://github.com/gtk-rs/gtk-rs-core", branch = "0.16", version = "0.16", optional = true } glutin = { version = "0.29", optional = true } once_cell = "1.0" -image = { version = "0.24", optional = true } +image = { version = "0.24", optional = true, default-features = false, features = ["png", "jpeg"] } memmap2 = { version = "0.5", optional = true } memfd = { version = "0.6", optional = true } uds = { version = "0.2", optional = true }