use tonic_build::configure; fn main() -> Result<(), Box> { configure() // .type_attribute( // "history.RepeatedSnapshotMeta", // "#[derive(serde::Serialize, serde::Deserialize)]", // ) // .type_attribute( // "history.SnapshotMeta", // "#[derive(serde::Serialize, serde::Deserialize)]", // ) .compile_protos(&["proto/history.proto"], &["proto"])?; Ok(()) }