Skip to content

Commit

Permalink
Remove bzip2 from the default compression types
Browse files Browse the repository at this point in the history
  • Loading branch information
famfo committed Oct 16, 2024
1 parent 628b89a commit b7a93b9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ default = [
"gzip-compression",
"zstd-compression",
"xz-compression",
"bzip2-compression"
]

gzip-compression = ["flate2"]
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
//!
Expand Down
3 changes: 0 additions & 3 deletions src/rpm/compressor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit b7a93b9

Please sign in to comment.