Skip to content

Commit 50852c6

Browse files
authored
Merge pull request #425 from NobodyXu/patch-1
Fix msrv: Run msrv checks with minimal versions
2 parents 367ec74 + a2df1db commit 50852c6

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.github/workflows/main.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,25 @@ jobs:
7777

7878
minimum:
7979
name: Minimum Rust compiler
80-
runs-on: ubuntu-latest
80+
runs-on: ${{ matrix.os }}
81+
strategy:
82+
matrix:
83+
os: [windows-2022, macos-latest, ubuntu-latest]
8184
env:
8285
# If this is changed to pass tests, then set `rust-version` in `Cargo.toml` to the same version.
83-
version: 1.56.1
86+
version: 1.63.0
8487
steps:
8588
- uses: actions/checkout@v4
8689
- name: Install Rust (rustup)
87-
run: rustup update ${version} --no-self-update && rustup default ${version}
90+
run: |
91+
rustup toolchain install ${version} nightly --profile minimal --no-self-update
92+
rustup default ${version}
93+
cargo +nightly update -Zminimal-versions
8894
shell: bash
8995
- run: cargo build
96+
- run: cargo build --features zlib
97+
- run: cargo build --features zlib --no-default-features
98+
- run: cargo build --features zlib-default --no-default-features
99+
- run: cargo build --features zlib-ng-compat --no-default-features
100+
- run: cargo build --features zlib-ng --no-default-features
101+
- run: cargo build --features cloudflare_zlib --no-default-features

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "flate2"
33
authors = ["Alex Crichton <[email protected]>", "Josh Triplett <[email protected]>"]
4-
version = "1.0.32"
4+
version = "1.0.33"
55
edition = "2018"
66
license = "MIT OR Apache-2.0"
77
readme = "README.md"
@@ -19,8 +19,8 @@ and raw deflate streams.
1919
exclude = [".*"]
2020

2121
[dependencies]
22-
libz-sys = { version = "1.1.8", optional = true, default-features = false }
23-
libz-ng-sys = { version = "1.1.8", optional = true }
22+
libz-sys = { version = "1.1.20", optional = true, default-features = false }
23+
libz-ng-sys = { version = "1.1.16", optional = true }
2424
libz-rs-sys = { version = "0.2.1", optional = true, default-features = false, features = ["std", "rust-allocator"] }
2525
cloudflare-zlib-sys = { version = "0.3.0", optional = true }
2626
miniz_oxide = { version = "0.8.0", optional = true, default-features = false, features = ["with-alloc"] }

0 commit comments

Comments
 (0)