fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.type_attribute("Target", "#[derive(serde::Deserialize, serde::Serialize)]")
.type_attribute(
"Target.method",
"#[derive(serde::Deserialize, serde::Serialize)]",
)
.type_attribute(
"Target.MethodPing",
"#[derive(serde::Deserialize, serde::Serialize)]",
)
.type_attribute(
"Target.MethodGET",
"#[derive(serde::Deserialize, serde::Serialize)]",
)
.compile_protos(&["proto/emerwen.proto"], &["proto"])?;
Ok(())
}