From 7db17862b52705d2e7671179217e3898cc0f22ed Mon Sep 17 00:00:00 2001 From: Daniel Paoliello Date: Wed, 10 Sep 2025 15:27:33 -0700 Subject: [PATCH 1/2] Allow windows-sys up to 0.61, and use cargo-minimal-versions to validate --- .github/workflows/test.yml | 21 +++++++++++++++++++++ Cargo.toml | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6118b68..bbd39f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,3 +62,24 @@ jobs: run: cargo generate-lockfile - name: cargo test run: cargo test --locked --all-features --all-targets + minimal-versions: + # cargo-minimal-versions checks that the crate works with the minimum versions of its + # dependencies. + runs-on: ${{ matrix.os }} + name: ${{ matrix.os }} / stable / minimal-versions + strategy: + fail-fast: false + matrix: + os: [macos-latest, windows-latest] + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - name: Install stable + uses: dtolnay/rust-toolchain@stable + - name: cargo install cargo-hack + uses: taiki-e/install-action@cargo-hack + - name: cargo install cargo-minimal-versions + uses: taiki-e/install-action@cargo-minimal-versions + - name: cargo minimal-versions test + run: cargo minimal-versions test --all-features --all-targets diff --git a/Cargo.toml b/Cargo.toml index f2d9df1..6d20c3c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ rust-version = "1.72.0" libc = { version = "0.2", optional = true } [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.59", features = ["Win32_System_Threading"], optional = true } +windows-sys = { version = ">=0.59, <=0.61", features = ["Win32_System_Threading"], optional = true } [features] default = ["fast-barrier"] @@ -23,7 +23,7 @@ default = ["fast-barrier"] fast-barrier = ["windows-sys", "libc"] [dev-dependencies] -criterion = "0.3.5" +criterion = "0.3.6" crossbeam-epoch = "0.9.8" haphazard = { git = "https://github.com/jonhoo/haphazard", rev = "e0e18f60f78652a63aba235be854f87d106c1a1b" } From 80c7548082ccc8389b3a7c38b22a43a5659a7853 Mon Sep 17 00:00:00 2001 From: Ibraheem Ahmed Date: Fri, 12 Sep 2025 20:45:46 -0400 Subject: [PATCH 2/2] maintain compatibility with windows-sys versions >=0.52 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2dcbd69..4351cae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ rust-version = "1.72.0" libc = { version = "0.2", optional = true } [target.'cfg(windows)'.dependencies] -windows-sys = { version = ">=0.59, <=0.61", features = ["Win32_System_Threading"], optional = true } +windows-sys = { version = ">=0.52, <=0.61", features = ["Win32_System_Threading"], optional = true } [features] default = ["fast-barrier"]