Skip to content

Commit d410559

Browse files
WIP: chore: upgrade windows 0.59.0 → 0.62.0
1 parent f84d6da commit d410559

File tree

4 files changed

+69
-67
lines changed

4 files changed

+69
-67
lines changed

.deny.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ skip = [
2222
# Deno uses an old version
2323
{ name = "which", version = "6.0.3" },
2424

25-
# Temporarily allow older Windows version until updates make it through
26-
{ name = "windows", version = "0.59" },
27-
{ name = "windows-core", version = "0.59" },
28-
{ name = "windows-implement", version = "0.59" },
29-
{ name = "windows-strings", version = "0.3" },
30-
3125
# cargo-metadata uses old version. Only used for infrastructure.
3226
{ name = "toml", version = "0.8.23" },
3327
{ name = "ordered-float", version = "2.10.1" },

Cargo.lock

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

Cargo.toml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,12 @@ gpu-alloc = "0.6"
210210
gpu-descriptor = "0.3.2"
211211

212212
# DX12 dependencies
213-
gpu-allocator = { version = "0.28", default-features = false, features = ["hashbrown"] }
213+
gpu-allocator = { version = "0.28", default-features = false, features = [
214+
"hashbrown",
215+
] }
214216
range-alloc = "0.1"
215217
mach-dxcompiler-rs = { version = "0.1.4", default-features = false } # remember to increase max_shader_model if applicable
216-
windows-core = { version = "0.61", default-features = false }
218+
windows-core = { version = "0.62", default-features = false }
217219

218220
# Gles dependencies
219221
khronos-egl = "6"
@@ -223,7 +225,7 @@ glutin-winit = { version = "0.4", default-features = false }
223225
glutin_wgl_sys = "0.6"
224226

225227
# DX12 and GLES dependencies
226-
windows = { version = "0.61", default-features = false }
228+
windows = { version = "0.62", default-features = false }
227229

228230
# wasm32 dependencies
229231
console_error_panic_hook = "0.1.5"
@@ -255,6 +257,18 @@ ndk-sys = "0.6"
255257
[patch.crates-io]
256258
wgpu = { path = "./wgpu" }
257259

260+
# https://github.com/Xudong-Huang/generator-rs/pull/76
261+
generator = { git = "https://github.com/Xudong-Huang/generator-rs", rev = "6201b45c99b2f41d133e4c5ca1803885d61be732" }
262+
263+
anstyle = { git = "https://github.com/erichdongubler-contrib/anstyle", rev = "c065f776e0190b400cc0afcb0ef4d36fe295dc43" }
264+
anstyle-query = { git = "https://github.com/erichdongubler-contrib/anstyle", rev = "c065f776e0190b400cc0afcb0ef4d36fe295dc43" }
265+
anstyle-wincon = { git = "https://github.com/erichdongubler-contrib/anstyle", rev = "c065f776e0190b400cc0afcb0ef4d36fe295dc43" }
266+
267+
# https://github.com/rust-lang/backtrace-rs/pull/727
268+
backtrace = { git = "https://github.com/rust-lang/backtrace-rs", rev = "00105b6b2692cdbc93056d0162a52f5565480240" }
269+
270+
gethostname = { git = "https://github.com/erichdongubler-contrib/gethostname.rs", rev = "5cd016032cb925d2396018af7b1f261a8957482e" }
271+
258272
[profile.release]
259273
lto = "thin"
260274
debug = true

wgpu-hal/src/gles/wgl.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ unsafe fn setup_pixel_format(dc: Gdi::HDC) -> Result<(), crate::InstanceError> {
226226
if index == 0 {
227227
return Err(crate::InstanceError::with_source(
228228
String::from("unable to choose pixel format"),
229-
Error::from_win32(),
229+
Error::from_thread(),
230230
));
231231
}
232232

@@ -244,7 +244,7 @@ unsafe fn setup_pixel_format(dc: Gdi::HDC) -> Result<(), crate::InstanceError> {
244244
if index == 0 {
245245
return Err(crate::InstanceError::with_source(
246246
String::from("unable to get pixel format index"),
247-
Error::from_win32(),
247+
Error::from_thread(),
248248
));
249249
}
250250
let mut format = Default::default();
@@ -254,7 +254,7 @@ unsafe fn setup_pixel_format(dc: Gdi::HDC) -> Result<(), crate::InstanceError> {
254254
{
255255
return Err(crate::InstanceError::with_source(
256256
String::from("unable to read pixel format"),
257-
Error::from_win32(),
257+
Error::from_thread(),
258258
));
259259
}
260260

@@ -311,7 +311,7 @@ fn create_global_window_class() -> Result<CString, crate::InstanceError> {
311311
if atom == 0 {
312312
return Err(crate::InstanceError::with_source(
313313
String::from("unable to register window class"),
314-
Error::from_win32(),
314+
Error::from_thread(),
315315
));
316316
}
317317

@@ -398,7 +398,7 @@ fn create_instance_device() -> Result<InstanceDevice, crate::InstanceError> {
398398
if dc.is_invalid() {
399399
return Err(crate::InstanceError::with_source(
400400
String::from("unable to create memory device"),
401-
Error::from_win32(),
401+
Error::from_thread(),
402402
));
403403
}
404404
let dc = DeviceContextHandle {
@@ -484,7 +484,7 @@ impl crate::Instance for Instance {
484484
if context.is_null() {
485485
return Err(crate::InstanceError::with_source(
486486
String::from("unable to create OpenGL context"),
487-
Error::from_win32(),
487+
Error::from_thread(),
488488
));
489489
}
490490
WglContext {
@@ -676,7 +676,7 @@ impl Surface {
676676
if dc.is_invalid() {
677677
log::error!(
678678
"unable to get the device context from window: {}",
679-
Error::from_win32()
679+
Error::from_thread()
680680
);
681681
return Err(crate::SurfaceError::Other(
682682
"unable to get the device context from window",
@@ -754,7 +754,7 @@ impl crate::Surface for Surface {
754754
if dc.is_invalid() {
755755
log::error!(
756756
"unable to get the device context from window: {}",
757-
Error::from_win32()
757+
Error::from_thread()
758758
);
759759
return Err(crate::SurfaceError::Other(
760760
"unable to get the device context from window",
@@ -828,7 +828,7 @@ impl crate::Surface for Surface {
828828
};
829829

830830
if unsafe { extra.SwapIntervalEXT(if vsync { 1 } else { 0 }) } == Foundation::FALSE.0 {
831-
log::error!("unable to set swap interval: {}", Error::from_win32());
831+
log::error!("unable to set swap interval: {}", Error::from_thread());
832832
return Err(crate::SurfaceError::Other("unable to set swap interval"));
833833
}
834834

0 commit comments

Comments
 (0)