From 192306b8994920d6c1be221613db398377cb2a58 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 14 Jun 2024 13:43:58 -0500 Subject: [PATCH] tool_registry --- crates/libs/registry/tests/bindings.rs | 4 ---- crates/tools/registry/Cargo.toml | 8 ++++++++ .../registry/tests => tools/registry/src}/bindings.txt | 2 +- crates/tools/registry/src/main.rs | 6 ++++++ 4 files changed, 15 insertions(+), 5 deletions(-) delete mode 100644 crates/libs/registry/tests/bindings.rs create mode 100644 crates/tools/registry/Cargo.toml rename crates/{libs/registry/tests => tools/registry/src}/bindings.txt (97%) create mode 100644 crates/tools/registry/src/main.rs diff --git a/crates/libs/registry/tests/bindings.rs b/crates/libs/registry/tests/bindings.rs deleted file mode 100644 index 803ee2f2c8..0000000000 --- a/crates/libs/registry/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/registry/Cargo.toml b/crates/tools/registry/Cargo.toml new file mode 100644 index 0000000000..ca0847c5cd --- /dev/null +++ b/crates/tools/registry/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "tool_registry" +version = "0.0.0" +edition = "2021" +publish = false + +[dependencies] +windows-bindgen = { path = "../../libs/bindgen" } diff --git a/crates/libs/registry/tests/bindings.txt b/crates/tools/registry/src/bindings.txt similarity index 97% rename from crates/libs/registry/tests/bindings.txt rename to crates/tools/registry/src/bindings.txt index 7f0a6f4e64..6bc398c2bd 100644 --- a/crates/libs/registry/tests/bindings.txt +++ b/crates/tools/registry/src/bindings.txt @@ -1,4 +1,4 @@ ---out src/bindings.rs +--out crates/libs/registry/src/bindings.rs --config flatten sys minimal no-bindgen-comment --filter diff --git a/crates/tools/registry/src/main.rs b/crates/tools/registry/src/main.rs new file mode 100644 index 0000000000..1681d86b78 --- /dev/null +++ b/crates/tools/registry/src/main.rs @@ -0,0 +1,6 @@ +use windows_bindgen::*; + +fn main() -> Result<()> { + bindgen(["--etc", "crates/tools/registry/src/bindings.txt"])?; + Ok(()) +}