12 lines
370 B
Rust

fn main() -> std::io::Result<()> {
let descriptor_path =
std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap()).join("descriptor.bin");
tonic_build::configure()
.build_client(true)
.build_server(true)
.file_descriptor_set_path(descriptor_path)
.compile(&["vanity.proto", "worker.proto"], &["protos"])?;
Ok(())
}