diff --git a/Cargo.toml b/Cargo.toml index 0576c5f0c..a265e0ff8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ time = { version = "0.3.37", default-features = false } [dependencies] aes = { version = "0.8", optional = true } -bzip2 = { version = "0.6.0", optional = true } +bzip2 = { version = "0.6.0", default-features = false, optional = true } chrono = { version = "0.4", optional = true } constant_time_eq = { version = "0.3.1", optional = true } crc32fast = "1.4" @@ -85,6 +85,8 @@ ppmd = ["dep:ppmd-rust"] unreserved = [] xz = ["dep:lzma-rust2"] xz-static = ["lzma"] +bzip2 = ["dep:bzip2", "bzip2/default"] +bzip2-rs = ["dep:bzip2", "bzip2/libbz2-rs-sys"] legacy-zip = ["bitstream-io"] default = [ "aes-crypto",