summaryrefslogtreecommitdiff
path: root/libs/proto/build.rs
blob: 80c3a5578a0992e76f5ee0f37a890e57de068a21 (plain)
1
2
3
4
5
6
7
8
9
10
11
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(())
}