yotei/yotei-nodes/build.rs
xqtc c4a3c03c87
All checks were successful
/ build (push) Successful in 1m44s
/ clippy (push) Successful in 1m43s
uwusched -> yoitei
2024-09-11 19:10:12 +02:00

12 lines
395 B
Rust

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