From 969550b5418978cc90b05a79ad1f72b7716bf9ee Mon Sep 17 00:00:00 2001 From: Elichai Turkel Date: Wed, 26 Mar 2025 14:05:09 +0200 Subject: [PATCH] Allow choosing bzip2 rust backend Signed-off-by: Elichai Turkel --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 28b610479..1e8dec0ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ time = { version = "0.3.37", default-features = false } [dependencies] aes = { version = "0.8", optional = true } -bzip2 = { version = "0.5.0", optional = true } +bzip2 = { version = "0.5.0", default-features = false, optional = true } chrono = { version = "0.4", optional = true } constant_time_eq = { version = "0.3", optional = true } crc32fast = "1.4" @@ -83,6 +83,8 @@ nt-time = ["dep:nt-time"] lzma = ["lzma-rs/stream"] unreserved = [] xz = ["dep:xz2"] +bzip2 = ["dep:bzip2", "bzip2/default"] +bzip2-rs = ["dep:bzip2", "bzip2/libbz2-rs-sys"] default = [ "aes-crypto", "bzip2",