diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4e7c8f6..bebb831 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,9 +24,11 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - - name: Override libc version (Rust 1.56 only) + - name: Pin to old dependency versions (Rust 1.56 only) if: matrix.rust == '1.56' - run: cargo update -p libc --precise 0.2.163 + run: | + cargo update -p libc --precise 0.2.163 + cargo update -p windows-sys --precise 0.52.0 - name: Setup cache uses: Swatinem/rust-cache@v2 - name: Test (no features) diff --git a/Cargo.toml b/Cargo.toml index 6a5b3f8..6aa23d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ rust-version = "1.56" libc = { version = "0.2", default-features = false } [target.'cfg(windows)'.dependencies.windows-sys] -version = "0.52" +version = ">=0.52, <=0.59" features = [ "Win32_Foundation", "Win32_System_Diagnostics_Debug",