From 59e54e508d9b3aea73d4b1c9c9b2b9f83868d48d Mon Sep 17 00:00:00 2001 From: Matteo Paonessa Date: Tue, 23 Jan 2024 19:02:46 +0100 Subject: [PATCH] Dependencies bump --- Cargo.toml | 20 ++++++++++---------- src/png.rs | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 06f60cc..f2d4d86 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,21 +29,21 @@ gif = ["dep:gifsicle", "image/gif"] parallel = ["oxipng?/parallel", "imagequant?/threads", "dssim/threads"] [dependencies] -mozjpeg-sys = { version = "1.0", optional = true } -oxipng = { version = "8.0", default-features = false, features = ["filetime", "zopfli"], optional = true } +mozjpeg-sys = { version = "1.1", optional = true } +oxipng = { version = "9.0", default-features = false, features = ["filetime", "zopfli"], optional = true } libc = "0.2" -gifsicle = { version = "1.92.5", optional = true } -webp = { version = "0.2.2", optional = true } +gifsicle = { version = "1.94", optional = true } +webp = { version = "0.2.6", optional = true } infer = "0.15.0" -image = { version = "0.24.6", default-features = false } +image = { version = "0.24.8", default-features = false } img-parts = "0.3" -bytes = "1.1" -lodepng = { version = "3.7", optional = true } -imagequant = {version = "4.1", optional = true, default-features = false} +bytes = "1.5" +lodepng = { version = "3.10", optional = true } +imagequant = {version = "4.3", optional = true, default-features = false} [dev-dependencies] -dssim = { version = "3.2.0", default-features = false, features = ["no-macos-vimage"] } -kamadak-exif = "0.5.4" +dssim = { version = "3.3", default-features = false, features = ["no-macos-vimage"] } +kamadak-exif = "0.5" [[bin]] name = "main" diff --git a/src/png.rs b/src/png.rs index 1affb29..189a66e 100644 --- a/src/png.rs +++ b/src/png.rs @@ -114,7 +114,7 @@ fn lossy(in_file: Vec, parameters: &CSParameters) -> Result, Caesium fn lossless(in_file: Vec, parameters: &CSParameters) -> Result, CaesiumError> { let mut oxipng_options = oxipng::Options::default(); if !parameters.keep_metadata { - oxipng_options.strip = oxipng::Headers::Safe; + oxipng_options.strip = oxipng::StripChunks::Safe; } if parameters.optimize && parameters.png.force_zopfli {