From 60841277c97e88decbac7c1ad25f0a881a77d674 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 14 Jun 2024 13:48:20 -0500 Subject: [PATCH] tool_result --- crates/libs/result/tests/bindings.rs | 4 ---- crates/tools/result/Cargo.toml | 8 ++++++++ .../{libs/result/tests => tools/result/src}/bindings.txt | 2 +- crates/tools/result/src/main.rs | 6 ++++++ 4 files changed, 15 insertions(+), 5 deletions(-) delete mode 100644 crates/libs/result/tests/bindings.rs create mode 100644 crates/tools/result/Cargo.toml rename crates/{libs/result/tests => tools/result/src}/bindings.txt (96%) create mode 100644 crates/tools/result/src/main.rs diff --git a/crates/libs/result/tests/bindings.rs b/crates/libs/result/tests/bindings.rs deleted file mode 100644 index 803ee2f2c8..0000000000 --- a/crates/libs/result/tests/bindings.rs +++ /dev/null @@ -1,4 +0,0 @@ -#[test] -fn bindings() { - windows_bindgen::bindgen(["--etc", "tests/bindings.txt"]).unwrap(); -} diff --git a/crates/tools/result/Cargo.toml b/crates/tools/result/Cargo.toml new file mode 100644 index 0000000000..33c0e5df65 --- /dev/null +++ b/crates/tools/result/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "tool_result" +version = "0.0.0" +edition = "2021" +publish = false + +[dependencies] +windows-bindgen = { path = "../../libs/bindgen" } diff --git a/crates/libs/result/tests/bindings.txt b/crates/tools/result/src/bindings.txt similarity index 96% rename from crates/libs/result/tests/bindings.txt rename to crates/tools/result/src/bindings.txt index 33472b81e1..32236b86e3 100644 --- a/crates/libs/result/tests/bindings.txt +++ b/crates/tools/result/src/bindings.txt @@ -1,4 +1,4 @@ ---out src/bindings.rs +--out crates/libs/result/src/bindings.rs --config flatten sys minimal vtbl no-bindgen-comment --filter diff --git a/crates/tools/result/src/main.rs b/crates/tools/result/src/main.rs new file mode 100644 index 0000000000..b4ae120020 --- /dev/null +++ b/crates/tools/result/src/main.rs @@ -0,0 +1,6 @@ +use windows_bindgen::*; + +fn main() -> Result<()> { + bindgen(["--etc", "crates/tools/result/src/bindings.txt"])?; + Ok(()) +}