This repository has been archived on 2024-12-20. You can view files and clone it, but cannot push or open issues or pull requests.
YanagiZS/crates/yanagi-eventgraph/build.rs
2024-11-25 02:17:19 +03:00

14 lines
371 B
Rust

use std::{fs, path::Path};
pub fn main() {
let proto_file = "action_info.proto";
if Path::new(&proto_file).exists() {
println!("cargo:rerun-if-changed={proto_file}");
let _ = fs::create_dir("out/");
prost_build::Config::new()
.out_dir("out/")
.compile_protos(&[proto_file], &["."])
.unwrap();
}
}