1 2 3 4 5 6
fn main() -> Result<(), Box<dyn std::error::Error>> { tonic_prost_build::configure() .type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]") .compile_protos(&["proto/pubsub_api.proto"], &["proto"])?; Ok(()) }