fn main() -> Result<(), Box> { tonic_build::configure() .type_attribute(".", "#[derive(Serialize)]") .type_attribute(".", "#[serde(rename_all = \"camelCase\")]") .compile(&["proto/grpc.proto"], &["proto/"])?; Ok(()) }