Skip to content

Commit

Permalink
tool_sys
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jun 14, 2024
1 parent 8377002 commit 5093d2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
3 changes: 3 additions & 0 deletions crates/tools/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ name = "tool_sys"
version = "0.0.0"
edition = "2021"
publish = false

[dependencies]
windows-bindgen = { path = "../../libs/bindgen" }
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--in crates/libs/bindgen/default
--out crates/libs/sys/src/lib.rs
--config package sys no-bindgen-comment
--config rustfmt-config=max_width=800,newline_style=Unix
Expand Down
16 changes: 4 additions & 12 deletions crates/tools/sys/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
fn main() {
let mut command = std::process::Command::new("cargo");
use windows_bindgen::*;

command.args([
"run",
"-p",
"riddle",
"--",
"--etc",
"crates/tools/sys/bindings.txt",
]);

assert!(command.status().unwrap().success());
fn main() -> Result<()> {
bindgen(["--etc", "crates/tools/sys/src/bindings.txt"])?;
Ok(())
}

0 comments on commit 5093d2b

Please sign in to comment.