From c30f5be0cc2d601adb917079e96a2100052bc2b5 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 5 Mar 2024 09:43:12 -0600 Subject: [PATCH 1/2] no-bindgen-comment --- crates/libs/bindgen/src/rust/mod.rs | 1 + crates/libs/bindgen/src/rust/try_format.rs | 2 +- crates/libs/bindgen/src/rust/writer.rs | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/libs/bindgen/src/rust/mod.rs b/crates/libs/bindgen/src/rust/mod.rs index 6c634a22eb..3afe0463d6 100644 --- a/crates/libs/bindgen/src/rust/mod.rs +++ b/crates/libs/bindgen/src/rust/mod.rs @@ -32,6 +32,7 @@ pub fn from_reader(reader: &'static metadata::Reader, mut config: std::collectio writer.implement = config.remove("implement").is_some(); writer.minimal = config.remove("minimal").is_some(); writer.no_inner_attributes = config.remove("no-inner-attributes").is_some(); + writer.no_bindgen_comment = config.remove("no-bindgen-comment").is_some(); writer.vtbl = config.remove("vtbl").is_some(); if writer.package && writer.flatten { diff --git a/crates/libs/bindgen/src/rust/try_format.rs b/crates/libs/bindgen/src/rust/try_format.rs index 0d7047105f..715f9a20ff 100644 --- a/crates/libs/bindgen/src/rust/try_format.rs +++ b/crates/libs/bindgen/src/rust/try_format.rs @@ -1,7 +1,7 @@ use std::io::Write; pub fn try_format(writer: &super::Writer, tokens: &str) -> String { - let preamble = if writer.package { + let preamble = if writer.no_bindgen_comment { String::new() } else { let name = std::env!("CARGO_PKG_NAME"); diff --git a/crates/libs/bindgen/src/rust/writer.rs b/crates/libs/bindgen/src/rust/writer.rs index 64c883d875..6e7a3c418e 100644 --- a/crates/libs/bindgen/src/rust/writer.rs +++ b/crates/libs/bindgen/src/rust/writer.rs @@ -19,6 +19,7 @@ pub struct Writer { pub package: bool, // default is single file with no cfg - implies !flatten pub minimal: bool, // strips out enumerators - in future possibly other helpers as well pub no_inner_attributes: bool, // skips the inner attributes at the start of the file + pub no_bindgen_comment: bool, // skips the bindgen comment at the start of the file pub vtbl: bool, // include minimal vtbl layout support for interfaces pub prepend: std::collections::HashMap, } @@ -36,6 +37,7 @@ impl Writer { package: false, minimal: false, no_inner_attributes: false, + no_bindgen_comment: false, vtbl: false, prepend: Default::default(), } From 732c57b1e3af5213d01ca17846c9554a441cd158 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 5 Mar 2024 09:43:26 -0600 Subject: [PATCH 2/2] code gen --- crates/libs/core/src/imp/bindings.rs | 2 -- crates/libs/core/src/imp/com_bindings.rs | 2 -- crates/libs/metadata/src/bindings.rs | 2 -- crates/libs/registry/src/bindings.rs | 2 -- crates/libs/registry/tests/bindings.txt | 2 +- crates/libs/result/src/bindings.rs | 2 -- crates/libs/result/tests/bindings.txt | 2 +- crates/libs/version/src/bindings.rs | 2 -- crates/libs/version/src/lib.rs | 1 + crates/tests/component/build.rs | 1 + crates/tests/component/src/bindings.rs | 2 -- crates/tests/component_client/build.rs | 2 ++ crates/tests/component_client/src/bindings.rs | 2 -- crates/tests/riddle/src/generic_interfaces.rs | 2 -- crates/tests/riddle/src/lib.rs | 13 ++++++++++++- crates/tests/riddle/src/module_attributes.rs | 2 -- crates/tests/riddle/src/nested_module.rs | 2 -- crates/tests/riddle/src/nested_struct.rs | 2 -- crates/tests/riddle/src/params.rs | 2 -- crates/tests/riddle/src/struct.rs | 2 -- crates/tests/riddle/src/win32_struct.rs | 2 -- crates/tests/riddle/src/winrt_struct.rs | 2 -- crates/tests/standalone/build.rs | 2 +- crates/tests/standalone/src/b_arch.rs | 2 -- crates/tests/standalone/src/b_arch_dependencies.rs | 2 -- crates/tests/standalone/src/b_bstr.rs | 2 -- crates/tests/standalone/src/b_calendar.rs | 2 -- crates/tests/standalone/src/b_constant_types.rs | 2 -- crates/tests/standalone/src/b_depends.rs | 2 -- crates/tests/standalone/src/b_enumeration.rs | 2 -- crates/tests/standalone/src/b_enumerator.rs | 2 -- crates/tests/standalone/src/b_guid.rs | 2 -- crates/tests/standalone/src/b_hresult.rs | 2 -- crates/tests/standalone/src/b_hstring.rs | 2 -- crates/tests/standalone/src/b_include_me.rs | 2 -- crates/tests/standalone/src/b_inspectable.rs | 2 -- crates/tests/standalone/src/b_nested.rs | 2 -- crates/tests/standalone/src/b_none.rs | 2 -- crates/tests/standalone/src/b_overloads.rs | 2 -- crates/tests/standalone/src/b_pcstr.rs | 2 -- crates/tests/standalone/src/b_pcwstr.rs | 2 -- crates/tests/standalone/src/b_prepend.rs | 2 -- crates/tests/standalone/src/b_pstr.rs | 2 -- crates/tests/standalone/src/b_pwstr.rs | 2 -- crates/tests/standalone/src/b_std.rs | 2 -- crates/tests/standalone/src/b_stringable.rs | 2 -- crates/tests/standalone/src/b_test.rs | 2 -- crates/tests/standalone/src/b_unknown.rs | 2 -- crates/tests/standalone/src/b_uri.rs | 2 -- crates/tests/standalone/src/b_variant.rs | 2 -- crates/tests/standalone/src/b_vtbl_0.rs | 2 -- crates/tests/standalone/src/b_vtbl_1.rs | 2 -- crates/tests/standalone/src/b_vtbl_2.rs | 2 -- crates/tests/standalone/src/b_vtbl_3.rs | 2 -- crates/tests/standalone/src/b_vtbl_4.rs | 2 -- crates/tests/standalone/src/b_win_enumerator.rs | 2 -- crates/tools/core/bindings.txt | 2 +- crates/tools/core/com_bindings.txt | 2 +- crates/tools/metadata/bindings.txt | 2 +- crates/tools/sys/bindings.txt | 2 +- crates/tools/windows/bindings.txt | 2 +- 61 files changed, 24 insertions(+), 107 deletions(-) diff --git a/crates/libs/core/src/imp/bindings.rs b/crates/libs/core/src/imp/bindings.rs index 05bbb13e7c..4b3d4e296d 100644 --- a/crates/libs/core/src/imp/bindings.rs +++ b/crates/libs/core/src/imp/bindings.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, dead_code, clippy::all)] ::windows_targets::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoGetActivationFactory(activatableclassid : * mut::core::ffi::c_void, iid : *const GUID, factory : *mut *mut ::core::ffi::c_void) -> HRESULT); ::windows_targets::link!("kernel32.dll" "system" fn CloseHandle(hobject : HANDLE) -> BOOL); diff --git a/crates/libs/core/src/imp/com_bindings.rs b/crates/libs/core/src/imp/com_bindings.rs index 8bb23a6983..6f6c1c7db6 100644 --- a/crates/libs/core/src/imp/com_bindings.rs +++ b/crates/libs/core/src/imp/com_bindings.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, dead_code, clippy::all)] #[inline] pub unsafe fn CoCreateGuid() -> ::windows_core::Result<::windows_core::GUID> { diff --git a/crates/libs/metadata/src/bindings.rs b/crates/libs/metadata/src/bindings.rs index c636cb9f8f..0a2caa0abe 100644 --- a/crates/libs/metadata/src/bindings.rs +++ b/crates/libs/metadata/src/bindings.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, dead_code, clippy::all)] pub type CorElementType = u8; pub const ELEMENT_TYPE_ARRAY: CorElementType = 20u8; diff --git a/crates/libs/registry/src/bindings.rs b/crates/libs/registry/src/bindings.rs index 0248689484..30fee5d709 100644 --- a/crates/libs/registry/src/bindings.rs +++ b/crates/libs/registry/src/bindings.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/libs/registry/tests/bindings.txt b/crates/libs/registry/tests/bindings.txt index 221a53d704..e2656e853c 100644 --- a/crates/libs/registry/tests/bindings.txt +++ b/crates/libs/registry/tests/bindings.txt @@ -1,5 +1,5 @@ --out src/bindings.rs ---config flatten sys minimal +--config flatten sys minimal no-bindgen-comment --filter Windows.Win32.Foundation.ERROR_INVALID_DATA diff --git a/crates/libs/result/src/bindings.rs b/crates/libs/result/src/bindings.rs index 9cad75a99d..c4dd520415 100644 --- a/crates/libs/result/src/bindings.rs +++ b/crates/libs/result/src/bindings.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/libs/result/tests/bindings.txt b/crates/libs/result/tests/bindings.txt index 135752da86..33472b81e1 100644 --- a/crates/libs/result/tests/bindings.txt +++ b/crates/libs/result/tests/bindings.txt @@ -1,5 +1,5 @@ --out src/bindings.rs ---config flatten sys minimal vtbl +--config flatten sys minimal vtbl no-bindgen-comment --filter Windows.Win32.Foundation.E_INVALIDARG diff --git a/crates/libs/version/src/bindings.rs b/crates/libs/version/src/bindings.rs index 25ef6a4afb..55bd91e175 100644 --- a/crates/libs/version/src/bindings.rs +++ b/crates/libs/version/src/bindings.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/libs/version/src/lib.rs b/crates/libs/version/src/lib.rs index a03b245eb7..ecb127449f 100644 --- a/crates/libs/version/src/lib.rs +++ b/crates/libs/version/src/lib.rs @@ -125,6 +125,7 @@ mod test { "--config", "flatten", "sys", + "no-bindgen-comment", "--filter", "Windows.Wdk.System.SystemServices.RtlGetVersion", "Windows.Win32.System.SystemInformation.OSVERSIONINFOEXW", diff --git a/crates/tests/component/build.rs b/crates/tests/component/build.rs index 59494b0de1..5313bae4f3 100644 --- a/crates/tests/component/build.rs +++ b/crates/tests/component/build.rs @@ -40,6 +40,7 @@ fn main() { "test_component", "--config", "implement", + "no-bindgen-comment", ]); if !command.status().unwrap().success() { diff --git a/crates/tests/component/src/bindings.rs b/crates/tests/component/src/bindings.rs index 1d2fe58711..4c78fee90b 100644 --- a/crates/tests/component/src/bindings.rs +++ b/crates/tests/component/src/bindings.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/component_client/build.rs b/crates/tests/component_client/build.rs index bc0c05fc63..da4fbbf552 100644 --- a/crates/tests/component_client/build.rs +++ b/crates/tests/component_client/build.rs @@ -15,6 +15,8 @@ fn main() { "src/bindings.rs", "--filter", "test_component", + "--config", + "no-bindgen-comment", ]); if !command.status().unwrap().success() { diff --git a/crates/tests/component_client/src/bindings.rs b/crates/tests/component_client/src/bindings.rs index 7b4ac636b6..6b12222497 100644 --- a/crates/tests/component_client/src/bindings.rs +++ b/crates/tests/component_client/src/bindings.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/riddle/src/generic_interfaces.rs b/crates/tests/riddle/src/generic_interfaces.rs index 870feb6421..fff0601ecd 100644 --- a/crates/tests/riddle/src/generic_interfaces.rs +++ b/crates/tests/riddle/src/generic_interfaces.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/riddle/src/lib.rs b/crates/tests/riddle/src/lib.rs index c731ee6aa4..b97c4bbf6d 100644 --- a/crates/tests/riddle/src/lib.rs +++ b/crates/tests/riddle/src/lib.rs @@ -42,7 +42,18 @@ pub fn run_riddle(name: &str, dialect: &str, etc: &[&str]) -> Vec u32 { ::windows_targets::link!("kernel32.dll" "system" fn GetVersion() -> u32); diff --git a/crates/tests/standalone/src/b_inspectable.rs b/crates/tests/standalone/src/b_inspectable.rs index 6e37f94f58..98efc5b00e 100644 --- a/crates/tests/standalone/src/b_inspectable.rs +++ b/crates/tests/standalone/src/b_inspectable.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_nested.rs b/crates/tests/standalone/src/b_nested.rs index 1643ac879e..46411370f8 100644 --- a/crates/tests/standalone/src/b_nested.rs +++ b/crates/tests/standalone/src/b_nested.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_none.rs b/crates/tests/standalone/src/b_none.rs index 75e91c3d79..0f1b4395d8 100644 --- a/crates/tests/standalone/src/b_none.rs +++ b/crates/tests/standalone/src/b_none.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_overloads.rs b/crates/tests/standalone/src/b_overloads.rs index 5c21975d57..21d89352db 100644 --- a/crates/tests/standalone/src/b_overloads.rs +++ b/crates/tests/standalone/src/b_overloads.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_pcstr.rs b/crates/tests/standalone/src/b_pcstr.rs index e640f224a5..4cb682206a 100644 --- a/crates/tests/standalone/src/b_pcstr.rs +++ b/crates/tests/standalone/src/b_pcstr.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_pcwstr.rs b/crates/tests/standalone/src/b_pcwstr.rs index df406d0f33..860d7c2da6 100644 --- a/crates/tests/standalone/src/b_pcwstr.rs +++ b/crates/tests/standalone/src/b_pcwstr.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_prepend.rs b/crates/tests/standalone/src/b_prepend.rs index 6f21f10ecf..28adbb9568 100644 --- a/crates/tests/standalone/src/b_prepend.rs +++ b/crates/tests/standalone/src/b_prepend.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_pstr.rs b/crates/tests/standalone/src/b_pstr.rs index 08a5ab950b..8d80831148 100644 --- a/crates/tests/standalone/src/b_pstr.rs +++ b/crates/tests/standalone/src/b_pstr.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_pwstr.rs b/crates/tests/standalone/src/b_pwstr.rs index 11fa2221dd..a68f389b0b 100644 --- a/crates/tests/standalone/src/b_pwstr.rs +++ b/crates/tests/standalone/src/b_pwstr.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_std.rs b/crates/tests/standalone/src/b_std.rs index e4aff0ea00..770d68483e 100644 --- a/crates/tests/standalone/src/b_std.rs +++ b/crates/tests/standalone/src/b_std.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_stringable.rs b/crates/tests/standalone/src/b_stringable.rs index 984607f770..25f1cce9eb 100644 --- a/crates/tests/standalone/src/b_stringable.rs +++ b/crates/tests/standalone/src/b_stringable.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_test.rs b/crates/tests/standalone/src/b_test.rs index 2326af00fb..5f6cb02e00 100644 --- a/crates/tests/standalone/src/b_test.rs +++ b/crates/tests/standalone/src/b_test.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_unknown.rs b/crates/tests/standalone/src/b_unknown.rs index 0dc7c6e5ec..7ce95f9d31 100644 --- a/crates/tests/standalone/src/b_unknown.rs +++ b/crates/tests/standalone/src/b_unknown.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_uri.rs b/crates/tests/standalone/src/b_uri.rs index f64a0101e9..8b194121f8 100644 --- a/crates/tests/standalone/src/b_uri.rs +++ b/crates/tests/standalone/src/b_uri.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_variant.rs b/crates/tests/standalone/src/b_variant.rs index f4c3c0cb76..f05e0a4798 100644 --- a/crates/tests/standalone/src/b_variant.rs +++ b/crates/tests/standalone/src/b_variant.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_vtbl_0.rs b/crates/tests/standalone/src/b_vtbl_0.rs index e5be8b2cdf..2290758b49 100644 --- a/crates/tests/standalone/src/b_vtbl_0.rs +++ b/crates/tests/standalone/src/b_vtbl_0.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_vtbl_1.rs b/crates/tests/standalone/src/b_vtbl_1.rs index 3aefaccfb0..ceb16f3422 100644 --- a/crates/tests/standalone/src/b_vtbl_1.rs +++ b/crates/tests/standalone/src/b_vtbl_1.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_vtbl_2.rs b/crates/tests/standalone/src/b_vtbl_2.rs index 49e82ead20..77711c928e 100644 --- a/crates/tests/standalone/src/b_vtbl_2.rs +++ b/crates/tests/standalone/src/b_vtbl_2.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_vtbl_3.rs b/crates/tests/standalone/src/b_vtbl_3.rs index 1a5ec88afe..905490df49 100644 --- a/crates/tests/standalone/src/b_vtbl_3.rs +++ b/crates/tests/standalone/src/b_vtbl_3.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_vtbl_4.rs b/crates/tests/standalone/src/b_vtbl_4.rs index 217fb2de80..84c6a6770a 100644 --- a/crates/tests/standalone/src/b_vtbl_4.rs +++ b/crates/tests/standalone/src/b_vtbl_4.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tests/standalone/src/b_win_enumerator.rs b/crates/tests/standalone/src/b_win_enumerator.rs index 3648f528d7..4d7d09a8d7 100644 --- a/crates/tests/standalone/src/b_win_enumerator.rs +++ b/crates/tests/standalone/src/b_win_enumerator.rs @@ -1,5 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.54.0 - #![allow( non_snake_case, non_upper_case_globals, diff --git a/crates/tools/core/bindings.txt b/crates/tools/core/bindings.txt index cb5d520850..37a36bc164 100644 --- a/crates/tools/core/bindings.txt +++ b/crates/tools/core/bindings.txt @@ -1,7 +1,7 @@ // These will use `windows-sys` style bindings. --out crates/libs/core/src/imp/bindings.rs ---config flatten sys minimal +--config flatten sys minimal no-bindgen-comment --filter Windows.Win32.Foundation.CloseHandle diff --git a/crates/tools/core/com_bindings.txt b/crates/tools/core/com_bindings.txt index 8f9d5a9c57..d89ce9fa91 100644 --- a/crates/tools/core/com_bindings.txt +++ b/crates/tools/core/com_bindings.txt @@ -1,7 +1,7 @@ // These will use `windows` style bindings and include COM APIs. --out crates/libs/core/src/imp/com_bindings.rs ---config flatten minimal +--config flatten minimal no-bindgen-comment --filter Windows.Foundation.IReference diff --git a/crates/tools/metadata/bindings.txt b/crates/tools/metadata/bindings.txt index ec71b12ffb..829d424fb4 100644 --- a/crates/tools/metadata/bindings.txt +++ b/crates/tools/metadata/bindings.txt @@ -1,6 +1,6 @@ --in crates/libs/bindgen/default --out crates/libs/metadata/src/bindings.rs ---config flatten sys minimal +--config flatten sys minimal no-bindgen-comment --filter Windows.Win32.System.Diagnostics.Debug.IMAGE_COR20_HEADER diff --git a/crates/tools/sys/bindings.txt b/crates/tools/sys/bindings.txt index 6b79775bac..56db292a40 100644 --- a/crates/tools/sys/bindings.txt +++ b/crates/tools/sys/bindings.txt @@ -1,6 +1,6 @@ --in crates/libs/bindgen/default --out crates/libs/sys/src/lib.rs ---config package sys +--config package sys no-bindgen-comment --filter Windows.Wdk diff --git a/crates/tools/windows/bindings.txt b/crates/tools/windows/bindings.txt index ff71ca73be..e2e34616c9 100644 --- a/crates/tools/windows/bindings.txt +++ b/crates/tools/windows/bindings.txt @@ -1,6 +1,6 @@ --in crates/libs/bindgen/default --out crates/libs/windows/src/lib.rs ---config package +--config package no-bindgen-comment --config prepend:Windows.Win32.Foundation.WIN32_ERROR=#[must_use] --config prepend:Windows.Win32.Foundation.BOOL=#[must_use] --config prepend:Windows.Win32.Foundation.NTSTATUS=#[must_use]