vapore/proto/build.rs

20 lines
418 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();
eprintln!("Got path {:?}", path);
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(())
}