Skip to content

Commit c827899

Browse files
mjgartonPr0methean
andauthored
Upgrade to bzip2 0.6.0 (#366)
* Upgrade to bzip2 0.6.0 Upgrade to bzip2 0.6.0, which has the benefit of being in pure Rust now. * Change MSRV to 1.82 Change MSRV to 1.82 too allow compatability with recent bzip2 dependency. * Fix clippy warning --------- Co-authored-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
1 parent 3a92c78 commit c827899

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- rustalias: stable
3333
rust: stable
3434
- rustalias: msrv
35-
rust: '1.75'
35+
rust: '1.82'
3636
- rustalias: nightly
3737
rust: nightly
3838
name: 'Build and test ${{ matrix.feature_flag }}: ${{ matrix.os }}, ${{ matrix.rustalias }}'

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repository = "https://github.com/zip-rs/zip2.git"
1212
keywords = ["zip", "archive", "compression"]
1313
# Any change to rust-version must be reflected also in `README.md` and `.github/workflows/ci.yaml`.
1414
# The MSRV policy is documented in `README.md`.
15-
rust-version = "1.75.0"
15+
rust-version = "1.82.0"
1616
description = """
1717
Library to support the reading and writing of zip files.
1818
"""
@@ -28,7 +28,7 @@ time = { version = "0.3.37", default-features = false }
2828

2929
[dependencies]
3030
aes = { version = "0.8", optional = true }
31-
bzip2 = { version = "0.5.0", optional = true }
31+
bzip2 = { version = "0.6.0", optional = true }
3232
chrono = { version = "0.4", optional = true }
3333
constant_time_eq = { version = "0.3.1", optional = true }
3434
crc32fast = "1.4"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ By default `aes-crypto`, `bzip2`, `deflate`, `deflate64`, `lzma`, `time` and `zs
5353
MSRV
5454
----
5555

56-
Our current Minimum Supported Rust Version is **1.75**. When adding features,
56+
Our current Minimum Supported Rust Version is **1.82**. When adding features,
5757
we will follow these guidelines:
5858

5959
- We will always support a minor Rust version that has been stable for at least 6 months.

examples/write-large-file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
2525
.large_file(true)
2626
.unix_permissions(0o755);
2727
zip.start_file("huge-file-of-zeroes", options)?;
28-
let content: Vec<_> = std::iter::repeat(0_u8).take(65 * 1024).collect();
28+
let content: Vec<_> = std::iter::repeat_n(0_u8, 65 * 1024).collect();
2929
let mut bytes_written = 0_u64;
3030
while bytes_written < u32::MAX as u64 {
3131
zip.write_all(&content)?;

0 commit comments

Comments
 (0)