DEVELOPMENT ENVIRONMENT

~liljamo/emerwen

ref: 0bedb35fff9fe3be00f6c1d4f3a1d86dec8f01b2 emerwen/emerwen-protocol/build.rs -rw-r--r-- 633 bytes
0bedb35fJonni Liljamo docs: add TODO for SIGINT listen 9 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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(())
}