From 2d57b1f0bc4901ac7b62bc2fc29f48540c0736c2 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Thu, 1 Oct 2026 22:23:34 +0200 Subject: [PATCH] deps: add bzip2-rs for bz2 orig tarballs Decode-only pure-Rust bzip2, matching flate2's pure-Rust default: no new system packages for building pkh, and the archive-side origin of the need is the busybox class of '.tar.bz2' upstream tarballs. --- Cargo.lock | 17 +++++++++++++++++ Cargo.toml | 1 + 2 files changed, 18 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 3571075..3c3515a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -155,6 +155,16 @@ version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +[[package]] +name = "bzip2-rs" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "beeb59e7e4c811ab37cc73680c798c7a5da77fc9989c62b09138e31ee740f735" +dependencies = [ + "crc32fast", + "tinyvec", +] + [[package]] name = "cc" version = "1.5.1" @@ -1533,6 +1543,7 @@ checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" name = "pkh" version = "0.2.0" dependencies = [ + "bzip2-rs", "chrono", "clap", "cmd_lib", @@ -2262,6 +2273,12 @@ dependencies = [ "zerovec", ] +[[package]] +name = "tinyvec" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee" + [[package]] name = "tokio" version = "1.53.1" diff --git a/Cargo.toml b/Cargo.toml index eeb476a..b596e8b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,6 +41,7 @@ lazy_static = "1.4.0" unicode-width = "0.2" parking_lot = "0.12" suppaftp = "12" +bzip2-rs = "0.1.2" [dev-dependencies] test-log = "0.2.19"