Improve tonic-build configuration (#2)

This commit is contained in:
John Doneth
2019-09-23 09:32:44 -04:00
committed by Lucio Franco
parent 1c2905255e
commit eb0c0c286b
4 changed files with 137 additions and 58 deletions
+2 -13
View File
@@ -1,15 +1,4 @@
fn main() {
tonic_build::compile_protos(
&["proto/helloworld/helloworld.proto"],
&["proto/helloworld"],
"helloworld",
)
.unwrap();
tonic_build::compile_protos(
&["proto/routeguide/route_guide.proto"],
&["proto/routeguide"],
"routeguide",
)
.unwrap();
tonic_build::compile_protos("proto/helloworld/helloworld.proto").unwrap();
tonic_build::compile_protos("proto/routeguide/route_guide.proto").unwrap();
}