Skip to content

Commit

Permalink
Change default compression scheme to zstd
Browse files Browse the repository at this point in the history
  • Loading branch information
famfo committed Oct 16, 2024
1 parent 0b61bb7 commit 71dce0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added `zstdmt` feature which sets zstd compression to use all available cores.
- Added feature flags for every compression algorithm to support disabling unused ones.

### Breaking Changes

- Changed default compression scheme from Gzip to Zstd.

## 0.15.0

### Breaking Changes
Expand Down
6 changes: 3 additions & 3 deletions src/rpm/compressor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ impl Default for CompressionWithLevel {
// reasonable tradeoff.
#[allow(unreachable_code)]
fn default() -> Self {
#[cfg(feature = "gzip-compression")]
return CompressionType::Gzip.into();

#[cfg(feature = "zstd-compression")]
return CompressionType::Zstd.into();

#[cfg(feature = "gzip-compression")]
return CompressionType::Gzip.into();

#[cfg(feature = "xz-compression")]
return CompressionType::Xz.into();

Expand Down

0 comments on commit 71dce0c

Please sign in to comment.