AcheronSR/proto/build.rs
2024-03-29 09:46:31 +03:00

11 lines
310 B
Rust

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