Skip to content

Commit

Permalink
Merge pull request rust-lang#425 from NobodyXu/patch-1
Browse files Browse the repository at this point in the history
Fix msrv: Run msrv checks with minimal versions
  • Loading branch information
Byron authored Aug 24, 2024
2 parents 367ec74 + a2df1db commit 50852c6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,25 @@ jobs:

minimum:
name: Minimum Rust compiler
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, macos-latest, ubuntu-latest]
env:
# If this is changed to pass tests, then set `rust-version` in `Cargo.toml` to the same version.
version: 1.56.1
version: 1.63.0
steps:
- uses: actions/checkout@v4
- name: Install Rust (rustup)
run: rustup update ${version} --no-self-update && rustup default ${version}
run: |
rustup toolchain install ${version} nightly --profile minimal --no-self-update
rustup default ${version}
cargo +nightly update -Zminimal-versions
shell: bash
- run: cargo build
- run: cargo build --features zlib
- run: cargo build --features zlib --no-default-features
- run: cargo build --features zlib-default --no-default-features
- run: cargo build --features zlib-ng-compat --no-default-features
- run: cargo build --features zlib-ng --no-default-features
- run: cargo build --features cloudflare_zlib --no-default-features
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "flate2"
authors = ["Alex Crichton <alex@alexcrichton.com>", "Josh Triplett <josh@joshtriplett.org>"]
version = "1.0.32"
version = "1.0.33"
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand All @@ -19,8 +19,8 @@ and raw deflate streams.
exclude = [".*"]

[dependencies]
libz-sys = { version = "1.1.8", optional = true, default-features = false }
libz-ng-sys = { version = "1.1.8", optional = true }
libz-sys = { version = "1.1.20", optional = true, default-features = false }
libz-ng-sys = { version = "1.1.16", optional = true }
libz-rs-sys = { version = "0.2.1", optional = true, default-features = false, features = ["std", "rust-allocator"] }
cloudflare-zlib-sys = { version = "0.3.0", optional = true }
miniz_oxide = { version = "0.8.0", optional = true, default-features = false, features = ["with-alloc"] }
Expand Down

0 comments on commit 50852c6

Please sign in to comment.