Better example code for google protos (#542)
* Better example code for google protos * Try fix windows build * Try fix windows build * Remove generated code in repo
This commit is contained in:
+8
-1
@@ -6,5 +6,12 @@ fn main() {
|
||||
|
||||
tonic_build::compile_protos("proto/helloworld/helloworld.proto").unwrap();
|
||||
tonic_build::compile_protos("proto/echo/echo.proto").unwrap();
|
||||
tonic_build::compile_protos("proto/google/pubsub/pubsub.proto").unwrap();
|
||||
|
||||
tonic_build::configure()
|
||||
.build_server(false)
|
||||
.compile(
|
||||
&["proto/googleapis/google/pubsub/v1/pubsub.proto"],
|
||||
&["proto/googleapis"],
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user