From 98f70fa662d5a74508da558feb607d692bcba5ef Mon Sep 17 00:00:00 2001 From: famfo Date: Wed, 16 Oct 2024 17:47:14 +0200 Subject: [PATCH] Remove bzip2 from the default compression types --- CHANGELOG.md | 1 + Cargo.toml | 1 - src/lib.rs | 4 ++-- src/rpm/compressor.rs | 3 --- 4 files changed, 3 insertions(+), 6 deletions(-) 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 c23f88e..5d8e1fc 100644 --- a/src/rpm/compressor.rs +++ b/src/rpm/compressor.rs @@ -165,9 +165,6 @@ impl Default for CompressionWithLevel { #[cfg(feature = "xz-compression")] return CompressionType::Xz.into(); - #[cfg(feature = "bzip2-compression")] - return CompressionType::Bzip2.into(); - CompressionType::None.into() } }