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.
This commit is contained in:
Eric Coissac
2026-05-22 10:27:46 +02:00
parent 3d58a32613
commit 72d054c06b
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -1617,7 +1617,9 @@ dependencies = [
name = "obiread"
version = "0.1.0"
dependencies = [
"bzip2-sys",
"infer",
"liblzma-sys",
"niffler 2.7.0",
"obikrope",
"regex",
+3 -1
View File
@@ -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"] }