20 lines
418 B
Rust
20 lines
418 B
Rust
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()
|
|
.includes(["proto/steam", "proto"])
|
|
.inputs(files)
|
|
.cargo_out_dir("gen")
|
|
.run_from_script();
|
|
|
|
Ok(())
|
|
}
|