Use bzip2/libbz2-rs-sys (#2071)

Also upgrade rc-zip-sync so that it uses bzip the same major version
v0.5.2 as our crate, so that it doesn't pull in c bzip and rust bzip
at the same time.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2025-03-04 23:20:35 +10:00 committed by GitHub
parent d9da8aaba4
commit a8daf8eb3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 24 deletions

View file

@ -20,14 +20,16 @@ async-compression = { version = "0.4.4", features = [
] }
binstalk-types = { version = "0.9.3", path = "../binstalk-types" }
bytes = "1.4.0"
bzip2 = "0.5.2"
bzip2 = { version = "0.5.2", default-features = false, features = [
"libbz2-rs-sys",
] }
cfg-if = "1"
compact_str = "0.9.0"
flate2 = { version = "1.0.28", default-features = false }
futures-util = "0.3.30"
futures-io = "0.3.30"
httpdate = "1.0.2"
rc-zip-sync = { version = "4.2.3", features = [
rc-zip-sync = { version = "4.2.6", features = [
"deflate",
"bzip2",
"deflate64",
@ -108,11 +110,7 @@ rustls = [
"hickory-resolver?/dns-over-quic",
"hickory-resolver?/dns-over-h3",
]
native-tls = [
"__tls",
"native-tls-crate",
"reqwest/native-tls",
]
native-tls = ["__tls", "native-tls-crate", "reqwest/native-tls"]
# Enable hickory-resolver so that features on it will also be enabled.
hickory-dns = ["hickory-resolver", "default-net", "ipconfig", "once_cell"]