acadia/rust/lib/yellowstone/build.rs
2024-07-28 14:32:50 -07:00

18 lines
470 B
Rust

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());
}