diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a5fc69..f28a509 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The `Header::parse_header` function gained a speed up related to parsing of the binary headers. - Added `zstdmt` feature which sets zstd compression to use all available cores. - Added feature flags for every compression algorithm to support disabling unused ones. +- Removed bzip2 from the compression options enabled by default. ### Breaking Changes diff --git a/Cargo.toml b/Cargo.toml index 15f1305..07b9e48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,7 +68,6 @@ default = [ "gzip-compression", "zstd-compression", "xz-compression", - "bzip2-compression" ] gzip-compression = ["flate2"] diff --git a/src/lib.rs b/src/lib.rs index 3d91826..16ac6b2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,8 +3,8 @@ //! A library providing API to parse rpms as well as //! creating rpms from individual files. //! -//! All supported compression types are behind feature flags which are enabled by default. They can -//! be disable if these compression algorithms are unused. +//! All supported compression types are behind feature flags. All of them except bzip2 are enabled +//! by default. They can be disable if these compression algorithms are unused. //! //! # Example //! diff --git a/src/rpm/compressor.rs b/src/rpm/compressor.rs index aea44f6..a3b31e0 100644 --- a/src/rpm/compressor.rs +++ b/src/rpm/compressor.rs @@ -168,9 +168,6 @@ impl Default for CompressionWithLevel { #[cfg(feature = "xz-compression")] return CompressionType::Xz.into(); - #[cfg(feature = "bzip2-compression")] - return CompressionType::Bzip2.into(); - CompressionType::None.into() } }