use std::{env, path::PathBuf};

fn main() {
    let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
    tonic_build::configure()
        .file_descriptor_set_path(out_dir.join("elpe_descriptor.bin"))
        .compile_protos(&["elpe/lib/elpegrpc.proto"], &["elpe/lib"])
        .unwrap();
}