From 1e0a57a1ef9b25b963d38b2da055e69b5f997e65 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sat, 2 May 2026 15:49:59 -0700 Subject: [PATCH] Avoid using a version range for windows-sys; causes non-deterministic version resolution Cargo's version resolver doesn't handle version ranges like this very well, resulting in non-deterministic flip-flopping of versions. https://github.com/rust-lang/cargo/issues/9029 https://github.com/rust-lang/cargo/issues/5529 https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/Cargo.2Elock.20non-deterministically.20flipflopping/with/520024108 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f3f5ce0..5a5e9f1 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, <0.62" +version = "0.61" features = [ "Win32_Foundation", "Win32_System_Diagnostics_Debug",