feat(build): Decouple codgen from prost (#170)

This commit is contained in:
Gyusun Yeom
2020-03-01 13:52:31 -05:00
committed by GitHub
parent 1b3d107206
commit f65cda1ea0
20 changed files with 550 additions and 356 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
fn main() -> Result<(), std::io::Error> {
tonic_build::configure()
tonic_build::prost::configure()
.build_server(false)
.build_client(true)
.extern_path(".uuid", "::uuid")
+1 -1
View File
@@ -1,3 +1,3 @@
fn main() {
tonic_build::compile_protos("proto/includer.proto").unwrap();
tonic_build::prost::compile_protos("proto/includer.proto").unwrap();
}
+1 -1
View File
@@ -1,3 +1,3 @@
fn main() {
tonic_build::compile_protos("proto/foo.proto").unwrap();
tonic_build::prost::compile_protos("proto/foo.proto").unwrap();
}
+1 -1
View File
@@ -1,3 +1,3 @@
fn main() {
tonic_build::compile_protos("proto/wellknown.proto").unwrap();
tonic_build::prost::compile_protos("proto/wellknown.proto").unwrap();
}