summaryrefslogtreecommitdiff
path: root/build.rs
blob: 2c2bae8d0eb3db10fef57e19d13e640f588519d7 (plain)
1
2
3
4
5
6
7
8
9
use std::{env, path::PathBuf};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let descriptor_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("skopos_descriptor.bin");
    tonic_build::configure()
        .file_descriptor_set_path(&descriptor_path)
        .compile_protos(&["proto/ormos.proto"], &["/proto/"])?;
    Ok(())
}