From 5bbd04b7ea543fdb9f139b530d9d500a260f1b43 Mon Sep 17 00:00:00 2001 From: xbmc4lyfe <273732874+xbmc4lyfe@users.noreply.github.com> Date: Sat, 5 Dec 2026 07:54:54 -0600 Subject: [PATCH] deps: use zipfast::zipview, drop the archived zipview crate (#849) zipview moved into zipfast as crates/zipview and is re-exported as zipfast::zipview. The standalone xbmc4lyfe/zipview repo is archived and its pinned copy (2c3d73a0) lacked later fixes, including authenticated full WinZip AES reads. unpack.rs and streamrepair.rs now import zipfast::zipview, the separate dependency is removed, and zipfast moves fa031ee7 -> c7ee07db (restart and correctness fixes). One zipview copy is built instead of two. Co-Authored-By: Claude Opus 5.5 --- rust/Cargo.lock | 17 ++++------------- rust/Cargo.toml | 3 +-- rust/src/streamrepair.rs | 1 + rust/src/unpack.rs | 1 + 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 81d6c806b..d6c712803 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -547,7 +547,6 @@ dependencies = [ "quick-xml", "vidmatch", "zipfast", - "zipview 0.1.0 (git+https://github.com/xbmc4lyfe/zipview?rev=2c3d73a06b29987cea1510e903e437a482076745)", "zstd", ] @@ -1059,12 +1058,12 @@ dependencies = [ [[package]] name = "zip-container" version = "0.1.0" -source = "git+https://github.com/Appz4Fun/zipfast?rev=fa031ee751ee294d6fb589b6caa1e986de3fdf1b#fa031ee751ee294d6fb589b6caa1e986de3fdf1b" +source = "git+https://github.com/Appz4Fun/zipfast?rev=c7ee07dbf4c9817bb8d0dbf07684c643932a96e5#c7ee07dbf4c9817bb8d0dbf07684c643932a96e5" [[package]] name = "zipfast" version = "0.1.0" -source = "git+https://github.com/Appz4Fun/zipfast?rev=fa031ee751ee294d6fb589b6caa1e986de3fdf1b#fa031ee751ee294d6fb589b6caa1e986de3fdf1b" +source = "git+https://github.com/Appz4Fun/zipfast?rev=c7ee07dbf4c9817bb8d0dbf07684c643932a96e5#c7ee07dbf4c9817bb8d0dbf07684c643932a96e5" dependencies = [ "bzip2", "crc32fast", @@ -1077,22 +1076,14 @@ dependencies = [ "subtle", "tempfile", "zip-container", - "zipview 0.1.0 (git+https://github.com/Appz4Fun/zipfast?rev=fa031ee751ee294d6fb589b6caa1e986de3fdf1b)", + "zipview", "zstd", ] [[package]] name = "zipview" version = "0.1.0" -source = "git+https://github.com/xbmc4lyfe/zipview?rev=2c3d73a06b29987cea1510e903e437a482076745#2c3d73a06b29987cea1510e903e437a482076745" -dependencies = [ - "flate2", -] - -[[package]] -name = "zipview" -version = "0.1.0" -source = "git+https://github.com/Appz4Fun/zipfast?rev=fa031ee751ee294d6fb589b6caa1e986de3fdf1b#fa031ee751ee294d6fb589b6caa1e986de3fdf1b" +source = "git+https://github.com/Appz4Fun/zipfast?rev=c7ee07dbf4c9817bb8d0dbf07684c643932a96e5#c7ee07dbf4c9817bb8d0dbf07684c643932a96e5" dependencies = [ "flate2", "subtle", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 9a75de724..01a29a49e 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -21,9 +21,8 @@ doctest = false [dependencies] par-rs = { git = "https://github.com/Appz4Fun/par-rs", rev = "e471c49a29f9ee40af9bd0bf60b7dec63cf74a4b" } -zipfast = { git = "https://github.com/Appz4Fun/zipfast", rev = "fa031ee751ee294d6fb589b6caa1e986de3fdf1b", features = ["persistent-partials"] } +zipfast = { git = "https://github.com/Appz4Fun/zipfast", rev = "c7ee07dbf4c9817bb8d0dbf07684c643932a96e5", features = ["persistent-partials"] } vidmatch = { git = "https://github.com/Appz4Fun/vidmatch", rev = "819206601b780f314081225d8156843787ea082d" } -zipview = { git = "https://github.com/xbmc4lyfe/zipview", rev = "2c3d73a06b29987cea1510e903e437a482076745" } # nntp-rs v0.4.4+ (one-pass yEnc decode) nntp-rs = { git = "https://github.com/Appz4Fun/nntp-rs", rev = "cf5df57ac49c6709ddde86f3f7eeff49e032821d", default-features = false, features = ["blocking", "openssl"] } crc32fast = "1.5" diff --git a/rust/src/streamrepair.rs b/rust/src/streamrepair.rs index 8a22cff4c..c108ac6bc 100644 --- a/rust/src/streamrepair.rs +++ b/rust/src/streamrepair.rs @@ -10,6 +10,7 @@ use crate::dupefallback::NzbgetRsByteRange; use crate::releasename::lower as c_lower_bytes; use crate::status::NzbParStatus; +use zipfast::zipview; pub const MAX_DECOMPRESS_BYTES: i64 = 16 * 1024 * 1024 * 1024; diff --git a/rust/src/unpack.rs b/rust/src/unpack.rs index 96c272c51..e1693a611 100644 --- a/rust/src/unpack.rs +++ b/rust/src/unpack.rs @@ -3,6 +3,7 @@ pub use crate::postrepair::NzbgetRsUnpackMessageInfo; use crate::status::{NzbParStatus, UnpackStatus}; +use zipfast::zipview; #[inline] fn find_subslice(haystack: &[u8], needle: &[u8]) -> Option {