From 3e59c76f165de4efed87bfd6d98cbd2d7b56e152 Mon Sep 17 00:00:00 2001 From: Kornel Date: Mon, 11 Sep 2023 00:20:48 +0100 Subject: [PATCH] Bump deps --- Cargo.toml | 2 +- imagequant-sys/Cargo.toml | 8 ++++---- imagequant-sys/src/ffi.rs | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 42637cd..b572993 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "imagequant" -version = "4.2.0" +version = "4.2.1" description = "Convert 24/32-bit images to 8-bit palette with alpha channel.\nFor lossy PNG compression and high-quality GIF images\nDual-licensed like pngquant. See https://pngquant.org for details." authors = ["Kornel Lesiński "] license = "GPL-3.0-or-later" diff --git a/imagequant-sys/Cargo.toml b/imagequant-sys/Cargo.toml index de93b7c..2c0e2d7 100644 --- a/imagequant-sys/Cargo.toml +++ b/imagequant-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "imagequant-sys" -version = "4.0.1" +version = "4.0.2" description = "Convert 24/32-bit images to 8-bit palette with alpha channel.\nC API/FFI libimagequant that powers pngquant lossy PNG compressor.\n\nDual-licensed like pngquant. See https://pngquant.org for details." authors = ["Kornel Lesiński "] license = "GPL-3.0-or-later" @@ -14,7 +14,7 @@ readme = "README.md" edition = "2021" links = "imagequant" build = "build.rs" -rust-version = "1.60" +rust-version = "1.63" [lib] crate-type = ["staticlib", "lib"] @@ -23,8 +23,8 @@ path = "src/ffi.rs" name = "imagequant_sys" [dependencies] -imagequant = { path = "..", version = "4.0.0", default-features = false, features = ["_internal_c_ffi"] } -bitflags = "1.3.2" +imagequant = { path = "..", version = "4.2.1", default-features = false, features = ["_internal_c_ffi"] } +bitflags = "2.0" libc = "0.2.112" [package.metadata.capi.library] diff --git a/imagequant-sys/src/ffi.rs b/imagequant-sys/src/ffi.rs index 35fdf91..4e91141 100644 --- a/imagequant-sys/src/ffi.rs +++ b/imagequant-sys/src/ffi.rs @@ -53,6 +53,7 @@ pub type liq_image_get_rgba_row_callback = unsafe extern "C" fn(row_out: *mut Ma bitflags::bitflags! { #[repr(C)] + #[derive(PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Clone, Copy)] pub struct liq_ownership: c_int { /// Moves ownership of the rows array. It will free it using `free()` or custom allocator. const LIQ_OWN_ROWS = 4;