grpc-build 8.0.0

gPRC compilation made easy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use grpc_build::Builder;

#[test]
fn build() {
    Builder::new()
        .build_client(true)
        .build_server(true)
        .force(true)
        .out_dir("tests/compile_test/protos")
        .file_descriptor_set_path("tests/compile_test/protos/descriptor.bin")
        .default_module_name("some_default")
        .build("tests/protos/grpc_build")
        .unwrap();

    let t = trybuild::TestCases::new();
    t.pass("tests/compile_test/definitions_exist.rs");
}