Skip to content

Commit f7e549d

Browse files
committed
fix: avoid updating windows
1 parent 153d854 commit f7e549d

File tree

4 files changed

+69
-27
lines changed

4 files changed

+69
-27
lines changed

Cargo.lock

Lines changed: 65 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ uuid = { version = "1.16.0" }
196196
version-ranges = { git = "https://github.com/astral-sh/pubgrub", rev = "d8efd77673c9a90792da9da31b6c0da7ea8a324b" }
197197
walkdir = { version = "2.5.0" }
198198
which = { version = "8.0.0", features = ["regex"] }
199-
windows = { version = "0.61.0", features = ["std", "Win32_Globalization", "Win32_System_LibraryLoader", "Win32_System_Console", "Win32_System_Kernel", "Win32_System_Diagnostics_Debug", "Win32_Storage_FileSystem", "Win32_Security", "Win32_System_Registry", "Win32_System_IO", "Win32_System_Ioctl"] }
199+
windows = { version = "0.59.0", features = ["std", "Win32_Globalization", "Win32_System_LibraryLoader", "Win32_System_Console", "Win32_System_Kernel", "Win32_System_Diagnostics_Debug", "Win32_Storage_FileSystem", "Win32_Security", "Win32_System_Registry", "Win32_System_IO", "Win32_System_Ioctl"] }
200200
windows-registry = { version = "0.5.0" }
201201
wiremock = { version = "0.6.4" }
202202
wmi = { version = "0.16.0", default-features = false }

crates/uv/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ walkdir = { workspace = true }
115115
which = { workspace = true }
116116
zip = { workspace = true }
117117

118+
[target.'cfg(target_os = "windows")'.dependencies]
118119
arrayvec = { workspace = true }
119120
self-replace = { workspace = true }
121+
windows = { workspace = true }
120122

121123
[dev-dependencies]
122124
uv-publish = { workspace = true, features = ["test"] }
@@ -142,9 +144,6 @@ whoami = { workspace = true }
142144
wiremock = { workspace = true }
143145
zip = { workspace = true }
144146

145-
[target.'cfg(target_os = "windows")'.dependencies]
146-
windows = { workspace = true }
147-
148147
[target.'cfg(unix)'.dependencies]
149148
nix = { workspace = true }
150149

crates/uv/src/windows_exception.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,6 @@ unsafe extern "system" fn unhandled_exception_filter(
308308
pub(crate) fn setup() {
309309
// SAFETY: winapi call, argument is a mostly async-signal-safe function
310310
unsafe {
311-
SetUnhandledExceptionFilter(Some(unhandled_exception_filter));
311+
SetUnhandledExceptionFilter(Some(Some(unhandled_exception_filter)));
312312
}
313313
}

0 commit comments

Comments
 (0)