From ae4e64f31632b9387bbdfdb07b01360d0c8ea97a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Thu, 8 Jun 2023 10:31:20 +0200 Subject: [PATCH] Heif --- Cargo.lock | 6 +++--- czkawka_core/Cargo.toml | 5 +++-- czkawka_gui/Cargo.toml | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9649586..d159b47 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -548,6 +548,7 @@ dependencies = [ "imagepipe", "infer", "libheif-rs", + "libheif-sys", "lofty", "mime_guess", "num_cpus", @@ -1721,12 +1722,11 @@ dependencies = [ [[package]] name = "libheif-sys" -version = "1.14.3" +version = "1.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d309f5eecf6f9d0ba8a36c3a911f46e96bd13a84164ee4620d2c6e80eea66fdd" +checksum = "6af8b7a4151ae10f6d2e8684f7172c43f09c0258c84190fd9704422588ceec63" dependencies = [ "libc", - "pkg-config", ] [[package]] diff --git a/czkawka_core/Cargo.toml b/czkawka_core/Cargo.toml index 379168d..f3e849a 100644 --- a/czkawka_core/Cargo.toml +++ b/czkawka_core/Cargo.toml @@ -73,11 +73,12 @@ infer = "0.13" num_cpus = "1.15" # Heif/Heic -libheif-rs = { version = "0.18.0", optional = true } # Do not upgrade now, since Ubuntu 22.04 not works with newer version +libheif-rs = { version = "=0.18.0", optional = true } # Do not upgrade now, since Ubuntu 22.04 not works with newer version +libheif-sys = { version = "=1.14.2", optional = true } # 1.14.3 brake compilation on Ubuntu 22.04 anyhow = { version = "1.0" } state = "0.6" [features] default = [] -heif = ["dep:libheif-rs"] +heif = ["dep:libheif-rs", "dep:libheif-sys"] diff --git a/czkawka_gui/Cargo.toml b/czkawka_gui/Cargo.toml index 12bcfbf..2dbfb54 100644 --- a/czkawka_gui/Cargo.toml +++ b/czkawka_gui/Cargo.toml @@ -10,8 +10,8 @@ homepage = "https://github.com/qarmin/czkawka" repository = "https://github.com/qarmin/czkawka" [dependencies] -gdk4 = "0.6.3" -glib = "0.17.10" +gdk4 = "0.6" +glib = "0.17" humansize = "2.1" chrono = "0.4.26"