Nova/libs/proto/build.rs

12 lines
331 B
Rust
Raw Normal View History

2023-01-02 15:59:03 +01:00
fn main() -> Result<(), Box<dyn std::error::Error>> {
let paths: Vec<String> = glob::glob("../../proto/nova/**/*.proto")?
.map(|f| f.unwrap().to_str().unwrap().to_string())
.collect();
tonic_build::configure()
.include_file("genproto.rs")
.compile(&paths, &["../../proto"])?;
Ok(())
}