Skip to content

Commit

Permalink
code gen
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Mar 5, 2024
1 parent c30f5be commit 732c57b
Show file tree
Hide file tree
Showing 61 changed files with 24 additions and 107 deletions.
2 changes: 0 additions & 2 deletions crates/libs/core/src/imp/bindings.rs
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 0 additions & 2 deletions crates/libs/core/src/imp/com_bindings.rs
Original file line number Diff line number Diff line change
@@ -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> {
Expand Down
2 changes: 0 additions & 2 deletions crates/libs/metadata/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 0 additions & 2 deletions crates/libs/registry/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/registry/tests/bindings.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions crates/libs/result/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/result/tests/bindings.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions crates/libs/version/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
1 change: 1 addition & 0 deletions crates/libs/version/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ mod test {
"--config",
"flatten",
"sys",
"no-bindgen-comment",
"--filter",
"Windows.Wdk.System.SystemServices.RtlGetVersion",
"Windows.Win32.System.SystemInformation.OSVERSIONINFOEXW",
Expand Down
1 change: 1 addition & 0 deletions crates/tests/component/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ fn main() {
"test_component",
"--config",
"implement",
"no-bindgen-comment",
]);

if !command.status().unwrap().success() {
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/component/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 2 additions & 0 deletions crates/tests/component_client/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ fn main() {
"src/bindings.rs",
"--filter",
"test_component",
"--config",
"no-bindgen-comment",
]);

if !command.status().unwrap().success() {
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/component_client/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/riddle/src/generic_interfaces.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
13 changes: 12 additions & 1 deletion crates/tests/riddle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,18 @@ pub fn run_riddle(name: &str, dialect: &str, etc: &[&str]) -> Vec<windows_metada
std::fs::remove_file(&rs).expect("Failed to delete output");
let mut command = Command::new("cargo");
command.args([
"run", "-p", "riddle", "--", "--in", &rdl, "--out", &rs, "--filter", "Test",
"run",
"-p",
"riddle",
"--",
"--in",
&rdl,
"--out",
&rs,
"--filter",
"Test",
"--config",
"no-bindgen-comment",
]);
command.args(etc);
assert!(command.status().unwrap().success());
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/riddle/src/module_attributes.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/riddle/src/nested_module.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/riddle/src/nested_struct.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/riddle/src/params.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/riddle/src/struct.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/riddle/src/win32_struct.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/riddle/src/winrt_struct.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 1 addition & 1 deletion crates/tests/standalone/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ fn riddle(output: &str, filter: &[&str], config: &[&str]) {
]);

command.args(filter);
command.arg("--config");
command.args(["--config", "no-bindgen-comment"]);
command.args(config);

if !command.status().unwrap().success() {
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_arch.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_arch_dependencies.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_bstr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_calendar.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_constant_types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_depends.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_enumeration.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_enumerator.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_guid.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_hresult.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_hstring.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_include_me.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#[inline]
pub unsafe fn GetVersion() -> u32 {
::windows_targets::link!("kernel32.dll" "system" fn GetVersion() -> u32);
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_inspectable.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_nested.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_none.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_overloads.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_pcstr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_pcwstr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_prepend.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_pstr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_pwstr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_std.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_stringable.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_unknown.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_uri.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_variant.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_vtbl_0.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_vtbl_1.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_vtbl_2.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_vtbl_3.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_vtbl_4.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/standalone/src/b_win_enumerator.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.54.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
2 changes: 1 addition & 1 deletion crates/tools/core/bindings.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/tools/core/com_bindings.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/tools/metadata/bindings.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/tools/sys/bindings.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading

0 comments on commit 732c57b

Please sign in to comment.