Skip to content

Commit b25203e

Browse files
committed
Bump windows-bindgen to 0.54.0
1 parent 3b85d2c commit b25203e

File tree

3 files changed

+38
-36
lines changed

3 files changed

+38
-36
lines changed

Cargo.lock

+6-4
Original file line numberDiff line numberDiff line change
@@ -6279,12 +6279,14 @@ dependencies = [
62796279

62806280
[[package]]
62816281
name = "windows-bindgen"
6282-
version = "0.52.0"
6282+
version = "0.54.0"
62836283
source = "registry+https://github.com/rust-lang/crates.io-index"
6284-
checksum = "970efb0b6849eb8a87a898f586af7cc167567b070014c7434514c0bde0ca341c"
6284+
checksum = "d86976b4742897f1df038908f5af6c0c1a291262eecf3e05abf1799bd3002dc2"
62856285
dependencies = [
62866286
"proc-macro2",
62876287
"rayon",
6288+
"serde",
6289+
"serde_json",
62886290
"syn 2.0.52",
62896291
"windows-metadata",
62906292
]
@@ -6300,9 +6302,9 @@ dependencies = [
63006302

63016303
[[package]]
63026304
name = "windows-metadata"
6303-
version = "0.52.0"
6305+
version = "0.54.0"
63046306
source = "registry+https://github.com/rust-lang/crates.io-index"
6305-
checksum = "218fd59201e26acdbb894fa2b302d1de84bf3eec7d0eb894ac8e9c5a854ee4ef"
6307+
checksum = "e44370b8367d7fd54085dff98fa774ead5070dd15aa892270a370555e35d04c2"
63066308

63076309
[[package]]
63086310
name = "windows-sys"

library/std/src/sys/pal/windows/c/windows_sys.rs

+31-31
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Bindings generated by `windows-bindgen` 0.52.0
1+
// Bindings generated by `windows-bindgen` 0.54.0
22

33
#![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, dead_code, clippy::all)]
44
#[link(name = "advapi32")]
@@ -17,11 +17,11 @@ extern "system" {
1717
}
1818
#[link(name = "kernel32")]
1919
extern "system" {
20-
pub fn AcquireSRWLockExclusive(srwlock: *mut SRWLOCK) -> ();
20+
pub fn AcquireSRWLockExclusive(srwlock: *mut SRWLOCK);
2121
}
2222
#[link(name = "kernel32")]
2323
extern "system" {
24-
pub fn AcquireSRWLockShared(srwlock: *mut SRWLOCK) -> ();
24+
pub fn AcquireSRWLockShared(srwlock: *mut SRWLOCK);
2525
}
2626
#[link(name = "kernel32")]
2727
extern "system" {
@@ -150,7 +150,7 @@ extern "system" {
150150
}
151151
#[link(name = "kernel32")]
152152
extern "system" {
153-
pub fn DeleteProcThreadAttributeList(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST) -> ();
153+
pub fn DeleteProcThreadAttributeList(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST);
154154
}
155155
#[link(name = "kernel32")]
156156
extern "system" {
@@ -338,11 +338,11 @@ extern "system" {
338338
}
339339
#[link(name = "kernel32")]
340340
extern "system" {
341-
pub fn GetSystemInfo(lpsysteminfo: *mut SYSTEM_INFO) -> ();
341+
pub fn GetSystemInfo(lpsysteminfo: *mut SYSTEM_INFO);
342342
}
343343
#[link(name = "kernel32")]
344344
extern "system" {
345-
pub fn GetSystemTimeAsFileTime(lpsystemtimeasfiletime: *mut FILETIME) -> ();
345+
pub fn GetSystemTimeAsFileTime(lpsystemtimeasfiletime: *mut FILETIME);
346346
}
347347
#[link(name = "kernel32")]
348348
extern "system" {
@@ -445,11 +445,11 @@ extern "system" {
445445
}
446446
#[link(name = "kernel32")]
447447
extern "system" {
448-
pub fn ReleaseSRWLockExclusive(srwlock: *mut SRWLOCK) -> ();
448+
pub fn ReleaseSRWLockExclusive(srwlock: *mut SRWLOCK);
449449
}
450450
#[link(name = "kernel32")]
451451
extern "system" {
452-
pub fn ReleaseSRWLockShared(srwlock: *mut SRWLOCK) -> ();
452+
pub fn ReleaseSRWLockShared(srwlock: *mut SRWLOCK);
453453
}
454454
#[link(name = "kernel32")]
455455
extern "system" {
@@ -503,7 +503,7 @@ extern "system" {
503503
}
504504
#[link(name = "kernel32")]
505505
extern "system" {
506-
pub fn SetLastError(dwerrcode: WIN32_ERROR) -> ();
506+
pub fn SetLastError(dwerrcode: WIN32_ERROR);
507507
}
508508
#[link(name = "kernel32")]
509509
extern "system" {
@@ -522,7 +522,7 @@ extern "system" {
522522
}
523523
#[link(name = "kernel32")]
524524
extern "system" {
525-
pub fn Sleep(dwmilliseconds: u32) -> ();
525+
pub fn Sleep(dwmilliseconds: u32);
526526
}
527527
#[link(name = "kernel32")]
528528
extern "system" {
@@ -596,11 +596,11 @@ extern "system" {
596596
}
597597
#[link(name = "kernel32")]
598598
extern "system" {
599-
pub fn WakeAllConditionVariable(conditionvariable: *mut CONDITION_VARIABLE) -> ();
599+
pub fn WakeAllConditionVariable(conditionvariable: *mut CONDITION_VARIABLE);
600600
}
601601
#[link(name = "kernel32")]
602602
extern "system" {
603-
pub fn WakeConditionVariable(conditionvariable: *mut CONDITION_VARIABLE) -> ();
603+
pub fn WakeConditionVariable(conditionvariable: *mut CONDITION_VARIABLE);
604604
}
605605
#[link(name = "kernel32")]
606606
extern "system" {
@@ -760,7 +760,7 @@ extern "system" {
760760
}
761761
#[link(name = "ws2_32")]
762762
extern "system" {
763-
pub fn freeaddrinfo(paddrinfo: *const ADDRINFOA) -> ();
763+
pub fn freeaddrinfo(paddrinfo: *const ADDRINFOA);
764764
}
765765
#[link(name = "ws2_32")]
766766
extern "system" {
@@ -3083,9 +3083,9 @@ impl ::core::clone::Clone for EXCEPTION_RECORD {
30833083
*self
30843084
}
30853085
}
3086-
pub const EXCEPTION_STACK_OVERFLOW: NTSTATUS = -1073741571i32;
3086+
pub const EXCEPTION_STACK_OVERFLOW: NTSTATUS = 0xC00000FD_u32 as _;
30873087
pub const EXTENDED_STARTUPINFO_PRESENT: PROCESS_CREATION_FLAGS = 524288u32;
3088-
pub const E_NOTIMPL: HRESULT = -2147467263i32;
3088+
pub const E_NOTIMPL: HRESULT = 0x80004001_u32 as _;
30893089
pub const ExceptionCollidedUnwind: EXCEPTION_DISPOSITION = 3i32;
30903090
pub const ExceptionContinueExecution: EXCEPTION_DISPOSITION = 0i32;
30913091
pub const ExceptionContinueSearch: EXCEPTION_DISPOSITION = 1i32;
@@ -3646,7 +3646,7 @@ pub type LPOVERLAPPED_COMPLETION_ROUTINE = ::core::option::Option<
36463646
dwerrorcode: u32,
36473647
dwnumberofbytestransfered: u32,
36483648
lpoverlapped: *mut OVERLAPPED,
3649-
) -> (),
3649+
),
36503650
>;
36513651
pub type LPPROC_THREAD_ATTRIBUTE_LIST = *mut ::core::ffi::c_void;
36523652
pub type LPPROGRESS_ROUTINE = ::core::option::Option<
@@ -3672,7 +3672,7 @@ pub type LPWSAOVERLAPPED_COMPLETION_ROUTINE = ::core::option::Option<
36723672
cbtransferred: u32,
36733673
lpoverlapped: *mut OVERLAPPED,
36743674
dwflags: u32,
3675-
) -> (),
3675+
),
36763676
>;
36773677
#[repr(C)]
36783678
pub struct M128A {
@@ -3771,7 +3771,7 @@ pub type PIO_APC_ROUTINE = ::core::option::Option<
37713771
apccontext: *mut ::core::ffi::c_void,
37723772
iostatusblock: *mut IO_STATUS_BLOCK,
37733773
reserved: u32,
3774-
) -> (),
3774+
),
37753775
>;
37763776
pub const PIPE_ACCEPT_REMOTE_CLIENTS: NAMED_PIPE_MODE = 0u32;
37773777
pub const PIPE_ACCESS_DUPLEX: FILE_FLAGS_AND_ATTRIBUTES = 3u32;
@@ -3814,7 +3814,7 @@ pub type PTIMERAPCROUTINE = ::core::option::Option<
38143814
lpargtocompletionroutine: *const ::core::ffi::c_void,
38153815
dwtimerlowvalue: u32,
38163816
dwtimerhighvalue: u32,
3817-
) -> (),
3817+
),
38183818
>;
38193819
pub type PWSTR = *mut u16;
38203820
pub const READ_CONTROL: FILE_ACCESS_RIGHTS = 131072u32;
@@ -3847,7 +3847,7 @@ pub type SET_FILE_POINTER_MOVE_METHOD = u32;
38473847
#[repr(C)]
38483848
pub struct SOCKADDR {
38493849
pub sa_family: ADDRESS_FAMILY,
3850-
pub sa_data: [u8; 14],
3850+
pub sa_data: [i8; 14],
38513851
}
38523852
impl ::core::marker::Copy for SOCKADDR {}
38533853
impl ::core::clone::Clone for SOCKADDR {
@@ -3858,7 +3858,7 @@ impl ::core::clone::Clone for SOCKADDR {
38583858
#[repr(C)]
38593859
pub struct SOCKADDR_UN {
38603860
pub sun_family: ADDRESS_FAMILY,
3861-
pub sun_path: [u8; 108],
3861+
pub sun_path: [i8; 108],
38623862
}
38633863
impl ::core::marker::Copy for SOCKADDR_UN {}
38643864
impl ::core::clone::Clone for SOCKADDR_UN {
@@ -3949,12 +3949,12 @@ impl ::core::clone::Clone for STARTUPINFOW {
39493949
}
39503950
}
39513951
pub type STARTUPINFOW_FLAGS = u32;
3952-
pub const STATUS_DELETE_PENDING: NTSTATUS = -1073741738i32;
3953-
pub const STATUS_END_OF_FILE: NTSTATUS = -1073741807i32;
3954-
pub const STATUS_INVALID_PARAMETER: NTSTATUS = -1073741811i32;
3955-
pub const STATUS_NOT_IMPLEMENTED: NTSTATUS = -1073741822i32;
3956-
pub const STATUS_PENDING: NTSTATUS = 259i32;
3957-
pub const STATUS_SUCCESS: NTSTATUS = 0i32;
3952+
pub const STATUS_DELETE_PENDING: NTSTATUS = 0xC0000056_u32 as _;
3953+
pub const STATUS_END_OF_FILE: NTSTATUS = 0xC0000011_u32 as _;
3954+
pub const STATUS_INVALID_PARAMETER: NTSTATUS = 0xC000000D_u32 as _;
3955+
pub const STATUS_NOT_IMPLEMENTED: NTSTATUS = 0xC0000002_u32 as _;
3956+
pub const STATUS_PENDING: NTSTATUS = 0x103_u32 as _;
3957+
pub const STATUS_SUCCESS: NTSTATUS = 0x0_u32 as _;
39583958
pub const STD_ERROR_HANDLE: STD_HANDLE = 4294967284u32;
39593959
pub type STD_HANDLE = u32;
39603960
pub const STD_INPUT_HANDLE: STD_HANDLE = 4294967286u32;
@@ -4115,8 +4115,8 @@ pub struct WSADATA {
41154115
pub iMaxSockets: u16,
41164116
pub iMaxUdpDg: u16,
41174117
pub lpVendorInfo: PSTR,
4118-
pub szDescription: [u8; 257],
4119-
pub szSystemStatus: [u8; 129],
4118+
pub szDescription: [i8; 257],
4119+
pub szSystemStatus: [i8; 129],
41204120
}
41214121
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
41224122
impl ::core::marker::Copy for WSADATA {}
@@ -4131,8 +4131,8 @@ impl ::core::clone::Clone for WSADATA {
41314131
pub struct WSADATA {
41324132
pub wVersion: u16,
41334133
pub wHighVersion: u16,
4134-
pub szDescription: [u8; 257],
4135-
pub szSystemStatus: [u8; 129],
4134+
pub szDescription: [i8; 257],
4135+
pub szSystemStatus: [i8; 129],
41364136
pub iMaxSockets: u16,
41374137
pub iMaxUdpDg: u16,
41384138
pub lpVendorInfo: PSTR,

src/tools/generate-windows-sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies.windows-bindgen]
7-
version = "0.52.0"
7+
version = "0.54.0"

0 commit comments

Comments
 (0)