From 72d054c06b4e9e73f69aa9ada9f6eac0a66021a4 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Fri, 22 May 2026 10:27:46 +0200 Subject: [PATCH] feat(obiread): add static bzip2 and lzma compression support Explicitly add `bzip2-sys` and `liblzma-sys` with the `static` feature to the `obiread` crate. This enforces static linking for BZ2 and LZMA/XZ backends, eliminating runtime dynamic library dependencies and ensuring consistent binary distribution. --- src/Cargo.lock | 2 ++ src/obiread/Cargo.toml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Cargo.lock b/src/Cargo.lock index 1871a63..93e5039 100644 --- a/src/Cargo.lock +++ b/src/Cargo.lock @@ -1617,7 +1617,9 @@ dependencies = [ name = "obiread" version = "0.1.0" dependencies = [ + "bzip2-sys", "infer", + "liblzma-sys", "niffler 2.7.0", "obikrope", "regex", diff --git a/src/obiread/Cargo.toml b/src/obiread/Cargo.toml index 9d4d0b1..dd91e39 100644 --- a/src/obiread/Cargo.toml +++ b/src/obiread/Cargo.toml @@ -5,7 +5,9 @@ edition = "2024" [dependencies] obikrope = { path = "../obikrope" } -niffler = { version = "2", default-features = false, features = ["gz", "bz2", "lzma", "zstd"] } +niffler = { version = "2", default-features = false, features = ["gz", "bz2", "lzma", "zstd"] } +bzip2-sys = { version = "0.1", features = ["static"] } +liblzma-sys = { version = "0.3", features = ["static"] } ureq = "2" tracing = "0.1.44" tracing-subscriber = { version = "0.3.23", features = ["fmt", "env-filter"] }