Skip to content

Commit 1da13ea

Browse files
committed
Change compression method to deflated only.
1 parent c3c9e62 commit 1da13ea

File tree

3 files changed

+2
-37
lines changed

3 files changed

+2
-37
lines changed

Cargo.lock

-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rocket = "0.4.6"
1111
tera = "1.6.0"
1212
lazy_static = "1.4.0"
1313
serde = { version = "1.0", features = ["derive"] }
14-
zip = "0.5"
14+
zip = { version = "0.5", default-features = false, features = ["deflate"] }
1515
tempdir = "0.3.7"
1616
walkdir = "2"
1717
anyhow = "1.0"

src/package_creator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ fn zip_package(src_dir: &str, dst_dir: &str) -> zip::result::ZipResult<()> {
206206
&mut it.filter_map(|e| e.ok()),
207207
src_dir,
208208
file,
209-
Some(zip::CompressionMethod::Bzip2).unwrap(),
209+
Some(zip::CompressionMethod::Deflated).unwrap(),
210210
)?;
211211
Ok(())
212212
}

0 commit comments

Comments
 (0)