use std::{env, path::PathBuf}; fn main() -> Result<(), Box> { 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(()) }