mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-28 19:22:56 +01:00
4ff5e409e3
* Add rest and grpc example * remove needless dependencies * Apply suggestions from code review Co-authored-by: David Pedersen <david.pdrsn@gmail.com> * Update examples/rest-grpc-multiplex/src/main.rs Co-authored-by: David Pedersen <david.pdrsn@gmail.com> * Update examples/rest-grpc-multiplex/src/main.rs Co-authored-by: David Pedersen <david.pdrsn@gmail.com> * Update examples/rest-grpc-multiplex/src/multiplex_service.rs Co-authored-by: David Pedersen <david.pdrsn@gmail.com> * Update examples/rest-grpc-multiplex/Cargo.toml Co-authored-by: David Pedersen <david.pdrsn@gmail.com> * Update examples/rest-grpc-multiplex/src/multiplex_service.rs Co-authored-by: David Pedersen <david.pdrsn@gmail.com> * clean noisy code * fix nitpicks * missing newline Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
19 lines
513 B
TOML
19 lines
513 B
TOML
[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"] }
|