fn main() -> Result<(), Box> { tonic_build::configure() .build_server(true) .type_attribute("*", "#[derive(Eq)]") .type_attribute( "SupplyMessage", "#[derive(serde::Serialize,serde::Deserialize)]", ) .type_attribute( "SupplyTier", "#[derive(serde::Serialize,serde::Deserialize)]", ) .type_attribute( "GridSpecification", "#[derive(serde::Serialize,serde::Deserialize)]", ) .compile( &[ "proto/capacity.proto", "proto/common.proto", "proto/grid.proto", "proto/supply.proto", ], &["proto/"], ) .unwrap(); Ok(()) }