chore(build): Refactor codegen traits (#302)
Signed-off-by: Lucio Franco <[email protected]>
This commit is contained in:
+4
-4
@@ -1,6 +1,6 @@
|
||||
fn main() {
|
||||
tonic_build::prost::compile_protos("proto/helloworld/helloworld.proto").unwrap();
|
||||
tonic_build::prost::compile_protos("proto/routeguide/route_guide.proto").unwrap();
|
||||
tonic_build::prost::compile_protos("proto/echo/echo.proto").unwrap();
|
||||
tonic_build::prost::compile_protos("proto/google/pubsub/pubsub.proto").unwrap();
|
||||
tonic_build::compile_protos("proto/helloworld/helloworld.proto").unwrap();
|
||||
tonic_build::compile_protos("proto/routeguide/route_guide.proto").unwrap();
|
||||
tonic_build::compile_protos("proto/echo/echo.proto").unwrap();
|
||||
tonic_build::compile_protos("proto/google/pubsub/pubsub.proto").unwrap();
|
||||
}
|
||||
|
||||
@@ -823,7 +823,7 @@ opposed to at build time, placing the resulting modules wherever we need them.
|
||||
|
||||
```rust
|
||||
fn main() {
|
||||
tonic_build::prost::configure()
|
||||
tonic_build::configure()
|
||||
.build_client(false)
|
||||
.out_dir("another_crate/src/pb")
|
||||
.compile(&["path/my_proto.proto"], &["path"])
|
||||
|
||||
Reference in New Issue
Block a user