From df26e1b8ccb0b9e9c4aa4c705a635f59b4a5110a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 14 Aug 2026 19:44:33 +0800 Subject: [PATCH] chore(deps): update rust crate png to 0.18 (#15875) * chore(deps): update rust crate png to 0.18 * fix compile * Add change file --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tony --- .changes/png-0.18.md | 5 +++++ Cargo.lock | 2 +- crates/tauri-codegen/Cargo.toml | 2 +- crates/tauri-codegen/src/image.rs | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changes/png-0.18.md diff --git a/.changes/png-0.18.md b/.changes/png-0.18.md new file mode 100644 index 000000000000..73bdce2a2f9f --- /dev/null +++ b/.changes/png-0.18.md @@ -0,0 +1,5 @@ +--- +tauri-codegen: patch:deps +--- + +Updated `png` crate to `0.18` diff --git a/Cargo.lock b/Cargo.lock index 5d626308dac3..36ee4884fee9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9066,7 +9066,7 @@ dependencies = [ "ico", "json-patch", "plist", - "png 0.17.16", + "png 0.18.1", "proc-macro2", "quote", "semver", diff --git a/crates/tauri-codegen/Cargo.toml b/crates/tauri-codegen/Cargo.toml index 6a0cf17e260c..01270765a142 100644 --- a/crates/tauri-codegen/Cargo.toml +++ b/crates/tauri-codegen/Cargo.toml @@ -29,7 +29,7 @@ brotli = { version = "8", optional = true, default-features = false, features = uuid = { version = "1", features = ["v4"] } semver = "1" ico = "0.5" -png = "0.17" +png = "0.18" json-patch = "4" url = "2" diff --git a/crates/tauri-codegen/src/image.rs b/crates/tauri-codegen/src/image.rs index 49546082a9b7..8affdfbcccff 100644 --- a/crates/tauri-codegen/src/image.rs +++ b/crates/tauri-codegen/src/image.rs @@ -83,7 +83,7 @@ impl CachedIcon { panic!("icon {} is not RGBA", icon.display()); } - let mut rgba = Vec::with_capacity(reader.output_buffer_size()); + let mut rgba = Vec::with_capacity(reader.output_buffer_size().unwrap()); while let Ok(Some(row)) = reader.next_row() { rgba.extend(row.data()); }