1 2 3 4 5 6 7 8
fn main() -> Result<(), Box<dyn std::error::Error>> { tonic_build::configure() .bytes(["."]) .compile_protos(&["proto/s2/v1alpha/s2.proto"], &["proto"])?; println!("cargo:rustc-env=COMPILED_PROST_FILE=s2.v1alpha.rs"); Ok(()) }