diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a5fc69..d09d0ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Breaking Changes - Changed default compression scheme from Gzip to Zstd. +- Removed bzip2 from the compression options enabled by default. ## 0.15.0 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() } }