12 lines
370 B
Rust
Raw Permalink Normal View History

2022-10-21 15:09:22 +08:00
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(())
}