From 31a26945b0c4a4a10dc38eed7fe898cd659068bd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 07:13:23 +0000 Subject: [PATCH 1/3] Update windows-sys requirement from 0.52 to 0.59 Updates the requirements on [windows-sys](https://github.com/microsoft/windows-rs) to permit the latest version. - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/compare/0.52.0...0.59.0) --- updated-dependencies: - dependency-name: windows-sys dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6a5b3f8..7c810ac 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.59" features = [ "Win32_Foundation", "Win32_System_Diagnostics_Debug", From d18ad1e0ea50288eea09446346d0ece82e359b28 Mon Sep 17 00:00:00 2001 From: Chris Wong Date: Wed, 27 Nov 2024 23:47:43 +1100 Subject: [PATCH 2/3] Try a range of versions Co-authored-by: Melvin Wang --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7c810ac..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.59" +version = ">=0.52, <=0.59" features = [ "Win32_Foundation", "Win32_System_Diagnostics_Debug", From e38cd11dcf700c74623441cea7119b20170d83ad Mon Sep 17 00:00:00 2001 From: Chris Wong Date: Thu, 28 Nov 2024 01:31:09 +1100 Subject: [PATCH 3/3] Try pin windows-sys too --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)