Add rest and grpc example (#967)

* Add rest and grpc example

* remove needless dependencies

* Apply suggestions from code review

Co-authored-by: David Pedersen <[email protected]>

* Update examples/rest-grpc-multiplex/src/main.rs

Co-authored-by: David Pedersen <[email protected]>

* Update examples/rest-grpc-multiplex/src/main.rs

Co-authored-by: David Pedersen <[email protected]>

* Update examples/rest-grpc-multiplex/src/multiplex_service.rs

Co-authored-by: David Pedersen <[email protected]>

* Update examples/rest-grpc-multiplex/Cargo.toml

Co-authored-by: David Pedersen <[email protected]>

* Update examples/rest-grpc-multiplex/src/multiplex_service.rs

Co-authored-by: David Pedersen <[email protected]>

* clean noisy code

* fix nitpicks

* missing newline

Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
takumi
2022-05-02 15:52:55 +00:00
committed by GitHub
co-authored by David Pedersen
parent a223fd8b85
commit 4ff5e409e3
5 changed files with 216 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
fn main() {
tonic_build::compile_protos("proto/helloworld.proto").unwrap();
}