vapore/proto/build.rs

20 lines
447 B
Rust
Raw Normal View History

2024-08-25 03:51:35 +00:00
use std::{fs, io};
pub fn main() -> io::Result<()> {
let mut files = Vec::new();
for file in fs::read_dir("proto/steam")? {
let path = file?.path();
2024-09-10 02:02:25 +00:00
println!("cargo:rerun-if-changed={}", path.to_str().unwrap());
2024-08-25 03:51:35 +00:00
files.push(path);
}
protobuf_codegen::Codegen::new()
2024-08-25 22:03:30 +00:00
.includes(["proto/steam", "proto"])
2024-08-25 03:51:35 +00:00
.inputs(files)
.cargo_out_dir("gen")
.run_from_script();
Ok(())
}