mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-06 00:00:17 +02:00
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:
@@ -0,0 +1,19 @@
|
||||
[package]
|
||||
name = "example-rest-grpc-multiplex"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
futures = "0.3"
|
||||
hyper = { version = "0.14", features = ["full"] }
|
||||
prost = "0.10"
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tonic = { version = "0.7" }
|
||||
tower = { version = "0.4", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = { version = "0.7", features = ["prost"] }
|
||||
Reference in New Issue
Block a user