DEVELOPMENT ENVIRONMENT

~liljamo/emerwen

ref: abcdf0d3b170901445527942b0a06d74cf4e46fc emerwen/emerwen-protocol/build.rs -rw-r--r-- 633 bytes
abcdf0d3Jonni Liljamo feat(master): hello i succeeded in async 11 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(())
}