Skip to content

Commit 9b2fade

Browse files
authored
allow windows-sys versions up to 0.61 and validate with cargo-minimal-versions
1 parent d489d05 commit 9b2fade

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,24 @@ jobs:
6262
run: cargo generate-lockfile
6363
- name: cargo test
6464
run: cargo test --locked --all-features --all-targets
65+
minimal-versions:
66+
# cargo-minimal-versions checks that the crate works with the minimum versions of its
67+
# dependencies.
68+
runs-on: ${{ matrix.os }}
69+
name: ${{ matrix.os }} / stable / minimal-versions
70+
strategy:
71+
fail-fast: false
72+
matrix:
73+
os: [macos-latest, windows-latest]
74+
steps:
75+
- uses: actions/checkout@v4
76+
with:
77+
submodules: true
78+
- name: Install stable
79+
uses: dtolnay/rust-toolchain@stable
80+
- name: cargo install cargo-hack
81+
uses: taiki-e/install-action@cargo-hack
82+
- name: cargo install cargo-minimal-versions
83+
uses: taiki-e/install-action@cargo-minimal-versions
84+
- name: cargo minimal-versions test
85+
run: cargo minimal-versions test --all-features --all-targets

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rust-version = "1.72.0"
1414
libc = { version = "0.2", optional = true }
1515

1616
[target.'cfg(windows)'.dependencies]
17-
windows-sys = { version = "0.59", features = ["Win32_System_Threading"], optional = true }
17+
windows-sys = { version = ">=0.52, <=0.61", features = ["Win32_System_Threading"], optional = true }
1818

1919
[features]
2020
default = ["fast-barrier"]

0 commit comments

Comments
 (0)