From b6de1c89c24c2d1df7632d5e36a478f8b1e05ef5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 26 Jun 2025 16:29:19 +0200 Subject: [PATCH] chore(deps): update rust crate md5 to 0.8 (#13712) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Fabian-Lars --- Cargo.lock | 4 ++-- crates/tauri-bundler/Cargo.toml | 2 +- crates/tauri-bundler/src/bundle/linux/debian.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 07ac9bd73..e7e09d339 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4468,9 +4468,9 @@ dependencies = [ [[package]] name = "md5" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" +checksum = "ae960838283323069879657ca3de837e9f7bbb4c7bf6ea7f1b290d5e9476d2e0" [[package]] name = "memchr" diff --git a/crates/tauri-bundler/Cargo.toml b/crates/tauri-bundler/Cargo.toml index 4b2f52514..f2b72360a 100644 --- a/crates/tauri-bundler/Cargo.toml +++ b/crates/tauri-bundler/Cargo.toml @@ -62,7 +62,7 @@ tauri-macos-sign = { version = "2.1.0", path = "../tauri-macos-sign" } [target."cfg(target_os = \"linux\")".dependencies] heck = "0.5" ar = "0.9" -md5 = "0.7" +md5 = "0.8" rpm = { version = "0.16", features = ["bzip2-compression"] } [target."cfg(unix)".dependencies] diff --git a/crates/tauri-bundler/src/bundle/linux/debian.rs b/crates/tauri-bundler/src/bundle/linux/debian.rs index 14f432f72..59d1dd3d6 100644 --- a/crates/tauri-bundler/src/bundle/linux/debian.rs +++ b/crates/tauri-bundler/src/bundle/linux/debian.rs @@ -305,7 +305,7 @@ fn generate_md5sums(control_dir: &Path, data_dir: &Path) -> crate::Result<()> { let mut file = File::open(path)?; let mut hash = md5::Context::new(); io::copy(&mut file, &mut hash)?; - for byte in hash.compute().iter() { + for byte in hash.finalize().iter() { write!(md5sums_file, "{byte:02x}")?; } let rel_path = path.strip_prefix(data_dir)?;