From 244eda8dc93bb7d226194bf620fdf169d1d1185b Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Sun, 13 Sep 2026 13:17:10 +0100 Subject: [PATCH 1/2] fix(deps): update minimal-versions for wasi --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 29729f967..6c3d5dda8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,11 +49,11 @@ unexpected_cfgs = { level = "allow", check-cfg = ["cfg(disable_clang_cl_tests)"] [dependencies] find-msvc-tools = { path = "find-msvc-tools", version = "0.1.12" } -jobserver = { version = "0.1.30", default-features = false, optional = true } +jobserver = { version = "0.1.32", default-features = false, optional = true } shlex = "2.0.1" [dev-dependencies] -tempfile = "3" +tempfile = "3.0.4" [target.'cfg(unix)'.dependencies] # Don't turn on the feature "std" for this, see https://github.com/rust-lang/cargo/issues/4866 From 0b5fb2374a8f6460e7d84fa2e7f1a9cc0418aee1 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Sun, 13 Sep 2026 13:22:14 +0100 Subject: [PATCH 2/2] ci: run MSRV job for more targets --- .github/workflows/main.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1f9628c59..072aa85b3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -484,11 +484,9 @@ jobs: msrv: name: MSRV - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ubuntu-latest + # TODO: switch to a matrix build once the MSRV is >= 1.68, which supports Cargo's sparse registry protocol. + # Without it, each job would cache the Git-based crates.io index, each adding ~690 MB to the GitHub Actions cache. steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -499,15 +497,24 @@ jobs: uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 with: cache: false + target: | + aarch64-apple-darwin + wasm32-unknown-unknown + x86_64-pc-windows-msvc + x86_64-unknown-linux-gnu toolchain: ${{ env.MSRV }} - uses: taiki-e/install-action@e67fa11c4b9316fa714ddf0abed07a0c3143b95b # v2.87.4 with: - tool: | - cargo-hack - cargo-minimal-versions + tool: cargo-hack fallback: none + # Cache the crates.io registry because older Cargo versions do not support the sparse registry protocol. + # This can be removed once the MSRV is >= 1.68. - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 - - run: cargo minimal-versions check --workspace --all-targets --feature-powerset --ignore-private + - run: RUSTC_BOOTSTRAP=1 cargo -Zminimal-versions generate-lockfile + - run: cargo hack check --locked --workspace --all-targets --feature-powerset --ignore-private --target aarch64-apple-darwin + - run: cargo hack check --locked --workspace --all-targets --feature-powerset --ignore-private --target wasm32-unknown-unknown + - run: cargo hack check --locked --workspace --all-targets --feature-powerset --ignore-private --target x86_64-pc-windows-msvc + - run: cargo hack check --locked --workspace --all-targets --feature-powerset --ignore-private --target x86_64-unknown-linux-gnu clippy: name: Clippy