use tonic_prost_build::configure; static PROTOBUF_DIR: &str = "../../../protobufs"; fn main() -> Result<(), Box> { configure() .message_attribute(".", "#[derive(::kameo::Reply)]") .compile_protos( &[ format!("{}/arbiter.proto", PROTOBUF_DIR), format!("{}/auth.proto", PROTOBUF_DIR), ], &[PROTOBUF_DIR.to_string()], ) .unwrap(); Ok(()) }