Hacky auto build for rust yunq.

This commit is contained in:
Drew Galbraith 2024-07-28 14:32:50 -07:00
parent 2cbf871d09
commit 370ba9ae40
3 changed files with 22 additions and 105 deletions

View file

@ -0,0 +1,18 @@
use std::process::Command;
fn main() {
let out = std::env::var("OUT_DIR").unwrap() + "/yunq.rs";
let status = Command::new("cargo")
.current_dir("../../../yunq/rust")
.arg("run")
.arg("--")
.arg("--input-path")
.arg("../../sys/yellowstone/lib/yellowstone/yellowstone.yunq")
.arg("--output-path")
.arg(out)
.status()
.expect("Failed to start execution");
assert!(status.success());
}