Skip to content

Commit 717c113

Browse files
authored
Unrolled build for #151680
Rollup merge of #151680 - ChrisDenton:bindgen, r=tgross35 Update backtrace and windows-bindgen Supersedes the backtrace bump in #151659 This is mostly just renaming `windows_targets` to `windows_link` but it needs to be done in tandem with the backtrace submodule update. The reason for doing this is that backtrace is both copy/pasted into std (via being a submodule) and published as an independent crate.
2 parents b3cda16 + aaeb550 commit 717c113

14 files changed

Lines changed: 173 additions & 173 deletions

File tree

Cargo.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6419,13 +6419,13 @@ dependencies = [
64196419

64206420
[[package]]
64216421
name = "windows-bindgen"
6422-
version = "0.61.1"
6422+
version = "0.66.0"
64236423
source = "registry+https://github.com/rust-lang/crates.io-index"
6424-
checksum = "9b4e97b01190d32f268a2dfbd3f006f77840633746707fbe40bcee588108a231"
6424+
checksum = "81b7ec123a4eadd44d1f44f76804316b477b2537abed9a2ab950b3c54afa1fcf"
64256425
dependencies = [
64266426
"serde",
64276427
"serde_json",
6428-
"windows-threading 0.1.0",
6428+
"windows-threading 0.2.1",
64296429
]
64306430

64316431
[[package]]

library/Cargo.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ dependencies = [
346346
"vex-sdk",
347347
"wasi 0.11.1+wasi-snapshot-preview1",
348348
"wasi 0.14.4+wasi-0.2.4",
349-
"windows-targets 0.0.0",
349+
"windows-link 0.0.0",
350350
]
351351

352352
[[package]]
@@ -427,6 +427,10 @@ dependencies = [
427427
"wit-bindgen",
428428
]
429429

430+
[[package]]
431+
name = "windows-link"
432+
version = "0.0.0"
433+
430434
[[package]]
431435
name = "windows-link"
432436
version = "0.2.1"
@@ -439,20 +443,16 @@ version = "0.60.2"
439443
source = "registry+https://github.com/rust-lang/crates.io-index"
440444
checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
441445
dependencies = [
442-
"windows-targets 0.53.5",
446+
"windows-targets",
443447
]
444448

445-
[[package]]
446-
name = "windows-targets"
447-
version = "0.0.0"
448-
449449
[[package]]
450450
name = "windows-targets"
451451
version = "0.53.5"
452452
source = "registry+https://github.com/rust-lang/crates.io-index"
453453
checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
454454
dependencies = [
455-
"windows-link",
455+
"windows-link 0.2.1",
456456
"windows_aarch64_gnullvm",
457457
"windows_aarch64_msvc",
458458
"windows_i686_gnu",

library/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ members = [
1212
exclude = [
1313
# stdarch has its own Cargo workspace
1414
"stdarch",
15-
"windows_targets"
15+
"windows_link"
1616
]
1717

1818
[profile.release.package.compiler_builtins]

library/std/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ object = { version = "0.37.1", default-features = false, optional = true, featur
5555
'archive',
5656
] }
5757

58-
[target.'cfg(any(windows, target_os = "cygwin"))'.dependencies.windows-targets]
59-
path = "../windows_targets"
58+
[target.'cfg(any(windows, target_os = "cygwin"))'.dependencies.windows-link]
59+
path = "../windows_link"
6060

6161
[dev-dependencies]
6262
rand = { version = "0.9.0", default-features = false, features = ["alloc"] }
@@ -130,7 +130,7 @@ llvm_enzyme = ["core/llvm_enzyme"]
130130

131131
# Enable using raw-dylib for Windows imports.
132132
# This will eventually be the default.
133-
windows_raw_dylib = ["windows-targets/windows_raw_dylib"]
133+
windows_raw_dylib = ["windows-link/windows_raw_dylib"]
134134

135135
[package.metadata.fortanix-sgx]
136136
# Maximum possible number of threads when testing

library/std/src/sys/alloc/windows.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const HEAP_ZERO_MEMORY: u32 = 0x00000008;
2020
// always return the same handle, which remains valid for the entire lifetime of the process.
2121
//
2222
// See https://docs.microsoft.com/windows/win32/api/heapapi/nf-heapapi-getprocessheap
23-
windows_targets::link!("kernel32.dll" "system" fn GetProcessHeap() -> c::HANDLE);
23+
windows_link::link!("kernel32.dll" "system" fn GetProcessHeap() -> c::HANDLE);
2424

2525
// Allocate a block of `dwBytes` bytes of memory from a given heap `hHeap`.
2626
// The allocated memory may be uninitialized, or zeroed if `dwFlags` is
@@ -36,7 +36,7 @@ windows_targets::link!("kernel32.dll" "system" fn GetProcessHeap() -> c::HANDLE)
3636
// Note that `dwBytes` is allowed to be zero, contrary to some other allocators.
3737
//
3838
// See https://docs.microsoft.com/windows/win32/api/heapapi/nf-heapapi-heapalloc
39-
windows_targets::link!("kernel32.dll" "system" fn HeapAlloc(hheap: c::HANDLE, dwflags: u32, dwbytes: usize) -> *mut c_void);
39+
windows_link::link!("kernel32.dll" "system" fn HeapAlloc(hheap: c::HANDLE, dwflags: u32, dwbytes: usize) -> *mut c_void);
4040

4141
// Reallocate a block of memory behind a given pointer `lpMem` from a given heap `hHeap`,
4242
// to a block of at least `dwBytes` bytes, either shrinking the block in place,
@@ -57,7 +57,7 @@ windows_targets::link!("kernel32.dll" "system" fn HeapAlloc(hheap: c::HANDLE, dw
5757
// Note that `dwBytes` is allowed to be zero, contrary to some other allocators.
5858
//
5959
// See https://docs.microsoft.com/windows/win32/api/heapapi/nf-heapapi-heaprealloc
60-
windows_targets::link!("kernel32.dll" "system" fn HeapReAlloc(
60+
windows_link::link!("kernel32.dll" "system" fn HeapReAlloc(
6161
hheap: c::HANDLE,
6262
dwflags : u32,
6363
lpmem: *const c_void,
@@ -78,7 +78,7 @@ windows_targets::link!("kernel32.dll" "system" fn HeapReAlloc(
7878
// Note that `lpMem` is allowed to be null, which will not cause the operation to fail.
7979
//
8080
// See https://docs.microsoft.com/windows/win32/api/heapapi/nf-heapapi-heapfree
81-
windows_targets::link!("kernel32.dll" "system" fn HeapFree(hheap: c::HANDLE, dwflags: u32, lpmem: *const c_void) -> c::BOOL);
81+
windows_link::link!("kernel32.dll" "system" fn HeapFree(hheap: c::HANDLE, dwflags: u32, lpmem: *const c_void) -> c::BOOL);
8282

8383
fn get_process_heap() -> *mut c_void {
8484
// SAFETY: GetProcessHeap simply returns a valid handle or NULL so is always safe to call.

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ unsafe extern "system" {
109109
pub fn ProcessPrng(pbdata: *mut u8, cbdata: usize) -> BOOL;
110110
}
111111

112-
windows_targets::link!("ntdll.dll" "system" fn NtCreateNamedPipeFile(
112+
windows_link::link!("ntdll.dll" "system" fn NtCreateNamedPipeFile(
113113
filehandle: *mut HANDLE,
114114
desiredaccess: FILE_ACCESS_RIGHTS,
115115
objectattributes: *const OBJECT_ATTRIBUTES,
@@ -229,15 +229,15 @@ compat_fn_with_fallback! {
229229

230230
cfg_select! {
231231
target_vendor = "uwp" => {
232-
windows_targets::link_raw_dylib!("ntdll.dll" "system" fn NtCreateFile(filehandle : *mut HANDLE, desiredaccess : FILE_ACCESS_RIGHTS, objectattributes : *const OBJECT_ATTRIBUTES, iostatusblock : *mut IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : FILE_FLAGS_AND_ATTRIBUTES, shareaccess : FILE_SHARE_MODE, createdisposition : NTCREATEFILE_CREATE_DISPOSITION, createoptions : NTCREATEFILE_CREATE_OPTIONS, eabuffer : *const core::ffi::c_void, ealength : u32) -> NTSTATUS);
233-
windows_targets::link_raw_dylib!("ntdll.dll" "system" fn NtOpenFile(filehandle : *mut HANDLE, desiredaccess : u32, objectattributes : *const OBJECT_ATTRIBUTES, iostatusblock : *mut IO_STATUS_BLOCK, shareaccess : u32, openoptions : u32) -> NTSTATUS);
234-
windows_targets::link_raw_dylib!("ntdll.dll" "system" fn NtReadFile(filehandle : HANDLE, event : HANDLE, apcroutine : PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, byteoffset : *const i64, key : *const u32) -> NTSTATUS);
235-
windows_targets::link_raw_dylib!("ntdll.dll" "system" fn NtWriteFile(filehandle : HANDLE, event : HANDLE, apcroutine : PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32, byteoffset : *const i64, key : *const u32) -> NTSTATUS);
236-
windows_targets::link_raw_dylib!("ntdll.dll" "system" fn RtlNtStatusToDosError(status : NTSTATUS) -> u32);
232+
windows_link::link_raw_dylib!("ntdll.dll" "system" fn NtCreateFile(filehandle : *mut HANDLE, desiredaccess : FILE_ACCESS_RIGHTS, objectattributes : *const OBJECT_ATTRIBUTES, iostatusblock : *mut IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : FILE_FLAGS_AND_ATTRIBUTES, shareaccess : FILE_SHARE_MODE, createdisposition : NTCREATEFILE_CREATE_DISPOSITION, createoptions : NTCREATEFILE_CREATE_OPTIONS, eabuffer : *const core::ffi::c_void, ealength : u32) -> NTSTATUS);
233+
windows_link::link_raw_dylib!("ntdll.dll" "system" fn NtOpenFile(filehandle : *mut HANDLE, desiredaccess : u32, objectattributes : *const OBJECT_ATTRIBUTES, iostatusblock : *mut IO_STATUS_BLOCK, shareaccess : u32, openoptions : u32) -> NTSTATUS);
234+
windows_link::link_raw_dylib!("ntdll.dll" "system" fn NtReadFile(filehandle : HANDLE, event : HANDLE, apcroutine : PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, byteoffset : *const i64, key : *const u32) -> NTSTATUS);
235+
windows_link::link_raw_dylib!("ntdll.dll" "system" fn NtWriteFile(filehandle : HANDLE, event : HANDLE, apcroutine : PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32, byteoffset : *const i64, key : *const u32) -> NTSTATUS);
236+
windows_link::link_raw_dylib!("ntdll.dll" "system" fn RtlNtStatusToDosError(status : NTSTATUS) -> u32);
237237
}
238238
_ => {}
239239
}
240240

241241
// Only available starting with Windows 8.
242242
#[cfg(not(target_vendor = "win7"))]
243-
windows_targets::link!("ws2_32.dll" "system" fn GetHostNameW(name : PWSTR, namelen : i32) -> i32);
243+
windows_link::link!("ws2_32.dll" "system" fn GetHostNameW(name : PWSTR, namelen : i32) -> i32);

library/std/src/sys/pal/windows/c/bindings.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--flat
33
--sys
44
--no-deps
5-
--link windows_targets
5+
--link windows_link
66
--filter
77
!INVALID_HANDLE_VALUE
88
ABOVE_NORMAL_PRIORITY_CLASS

0 commit comments

Comments
 (0)