From 7046f0f3ef22a97e540cae9f5f2973e3e76910dd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 31 Oct 2026 23:39:08 +0000 Subject: [PATCH 1/2] build(deps): bump the cargo group across 1 directory with 2 updates Bumps the cargo group with 2 updates in the / directory: [zip](https://github.com/zip-rs/zip2) and [rustls](https://github.com/rustls/rustls). Updates `zip` from 8.6.0 to 9.0.5 - [Release notes](https://github.com/zip-rs/zip2/releases) - [Changelog](https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md) - [Commits](https://github.com/zip-rs/zip2/compare/v8.6.0...v9.0.5) Updates `rustls` from 0.23.45 to 0.23.46 - [Release notes](https://github.com/rustls/rustls/releases) - [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md) - [Commits](https://github.com/rustls/rustls/compare/v/0.23.45...v/0.23.46) --- updated-dependencies: - dependency-name: zip dependency-version: 9.0.5 dependency-type: direct:production dependency-group: cargo - dependency-name: rustls dependency-version: 0.23.46 dependency-type: indirect dependency-group: cargo ... Signed-off-by: dependabot[bot] --- Cargo.lock | 17 ++++++++++------- Cargo.toml | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6ba869b..95ab968 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4380,9 +4380,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.45" +version = "0.23.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" dependencies = [ "aws-lc-rs", "once_cell", @@ -4933,7 +4933,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.3", + "getrandom 0.3.4", "once_cell", "rustix", "windows-sys 0.61.2", @@ -5249,9 +5249,9 @@ dependencies = [ [[package]] name = "typed-path" -version = "0.12.3" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e" +checksum = "9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e" [[package]] name = "typenum" @@ -6113,15 +6113,18 @@ dependencies = [ [[package]] name = "zip" -version = "8.6.0" +version = "9.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b" +checksum = "3f5b58784007ff6e5f280ec82c8596686a3b9b5dd5836c63288d4479f84728b9" dependencies = [ "crc32fast", "flate2", + "getrandom 0.4.3", "indexmap", "memchr", + "nix", "typed-path", + "windows-sys 0.61.2", "zopfli", ] diff --git a/Cargo.toml b/Cargo.toml index 92c34d4..547623d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ ignore = "0.4" sha2 = "0.11" # Google Takeout exports are zip sets; the importer reads their central # directories and streams entries out without extracting to disk first. -zip = { version = "8", default-features = false, features = ["deflate"] } +zip = { version = "9", default-features = false, features = ["deflate"] } # Proton's photo duplicate detection is keyed on the plaintext SHA-1, so an # import has to speak SHA-1 whatever its age. sha1 = "0.11" From e7382f2c7e265ad5dc69cea1009c8b9d512b39ac Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Sun, 1 Nov 2026 11:12:17 +0100 Subject: [PATCH 2/2] test(core): name zip's options type the way zip 9 accepts --- crates/pdfs-core/src/takeout.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/pdfs-core/src/takeout.rs b/crates/pdfs-core/src/takeout.rs index df9cf40..16d0542 100644 --- a/crates/pdfs-core/src/takeout.rs +++ b/crates/pdfs-core/src/takeout.rs @@ -1332,8 +1332,8 @@ mod tests { )); let file = std::fs::File::create(&path).unwrap(); let mut zip = zip::ZipWriter::new(file); - let options: zip::write::FileOptions<'_, ()> = - zip::write::FileOptions::default().compression_method(zip::CompressionMethod::Stored); + let options = zip::write::SimpleFileOptions::default() + .compression_method(zip::CompressionMethod::Stored); for (name, body) in files { zip.start_file(*name, options).unwrap(); zip.write_all(body).unwrap();