gateway-annotations 0.1.2

Annotations for the Rust gRPC Gateway.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use protoc_bin_vendored;

fn main() {
    let protoc = protoc_bin_vendored::protoc_bin_path().unwrap();
    std::env::set_var("PROTOC", protoc);

    prost_build::Config::new()
        .protoc_arg("--experimental_allow_proto3_optional")
        .compile_protos(
            &[
                "proto/google/protobuf/compiler/plugin.proto",
                "proto/google/api/annotations.proto",
                "proto/google/api/http.proto",
            ],
            &["proto"],
        )
        .unwrap();
}