From fa3c7cb82b07cfa405029ec2ac3fa33bcc4b32ab Mon Sep 17 00:00:00 2001 From: tottoto Date: Wed, 19 Mar 2025 21:05:53 +0900 Subject: [PATCH 1/2] chore: add rust-version field in manifest --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index b61d6ec..943cc01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ homepage = "https://hyper.rs" repository = "https://github.com/hyperium/hyper-tls" documentation = "https://docs.rs/hyper-tls" edition = "2018" +rust-version = "1.63" [features] alpn = ["native-tls/alpn"] From ef776f7580057fb8c984de5137c3d2bda5e51491 Mon Sep 17 00:00:00 2001 From: tottoto Date: Wed, 19 Mar 2025 21:10:38 +0900 Subject: [PATCH 2/2] chore(ci): use msrv aware dependency resolver --- .github/workflows/CI.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1bec47e..44b9d4e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -62,13 +62,10 @@ jobs: - run: cargo test msrv: - name: Check MSRV (${{ matrix.rust }}) + name: Check MSRV needs: [style] strategy: matrix: - rust: - - 1.63 # keep in sync with MSRV.md dev doc - os: - ubuntu-latest @@ -77,10 +74,21 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install Rust (${{ matrix.rust }}) + - uses: dtolnay/rust-toolchain@stable + + - name: Resolve MSRV aware dependencies + run: cargo update + env: + CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS: fallback + + - name: Get MSRV from package metadata + id: msrv + run: echo "version=$(yq '.package.rust-version' Cargo.toml)" >> $GITHUB_OUTPUT + + - name: Install Rust (${{ steps.msrv.outputs.version }}) uses: dtolnay/rust-toolchain@master with: - toolchain: ${{ matrix.rust }} + toolchain: ${{ steps.msrv.outputs.version }} - run: cargo check --features vendored