1 2 3 4 5 6 7 8 9
fn main() -> Result<(), Box<dyn std::error::Error>> { tonic_build::configure() .protoc_arg("--experimental_allow_proto3_optional") .compile_protos(&["proto/authly_service.proto"], &["proto/"])?; println!("cargo:rerun-if-changed=build.rs"); Ok(()) }