Skip to content

Commit a5320fe

Browse files
committed
increase MSRV to 1.57 to match http crate
1 parent de0b1a1 commit a5320fe

3 files changed

Lines changed: 23 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,24 @@ jobs:
4545

4646
steps:
4747
- uses: actions/checkout@v4
48-
- uses: taiki-e/install-action@cargo-hack
49-
- run: cargo hack --rust-version --no-dev-deps check --workspace
48+
49+
- uses: dtolnay/rust-toolchain@stable
50+
51+
- name: Resolve MSRV aware dependencies
52+
run: cargo update
53+
env:
54+
CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS: fallback
55+
56+
- name: Get MSRV from package metadata
57+
id: msrv
58+
run: echo "version=$(yq '.package.rust-version' Cargo.toml)" >> $GITHUB_OUTPUT
59+
60+
- name: Install Rust (${{ steps.msrv.outputs.version }})
61+
uses: dtolnay/rust-toolchain@master
62+
with:
63+
toolchain: ${{ steps.msrv.outputs.version }}
64+
65+
- uses: Swatinem/rust-cache@v2
66+
67+
- name: Check
68+
run: cargo check --workspace

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = ["Sean McArthur <sean@seanmonstar.com>"]
1010
keywords = ["http", "headers", "hyper", "hyperium"]
1111
categories = ["web-programming"]
1212
edition = "2018"
13-
rust-version = "1.56"
13+
rust-version = "1.57"
1414

1515
[workspace]
1616
members = ["headers-core"]

headers-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/hyperium/headers"
99
authors = ["Sean McArthur <sean@seanmonstar.com>"]
1010
keywords = ["http", "headers", "hyper", "hyperium"]
1111
edition = "2018"
12-
rust-version = "1.49"
12+
rust-version = "1.57"
1313

1414
[dependencies]
1515
http = "1.0.0"

0 commit comments

Comments
 (0)