xref: /tonic/tests/disable_comments/build.rs (revision 6cdb3d46)
1 fn main() {
2     let mut config = prost_build::Config::default();
3     config.disable_comments(&["test.Input1", "test.Output1"]);
4     tonic_build::configure()
5         .disable_comments("test.Service1")
6         .disable_comments("test.Service1.Rpc1")
7         .build_client(true)
8         .build_server(true)
9         .compile_with_config(config, &["proto/test.proto"], &["proto"])
10         .unwrap();
11 }
12