mirror of
https://github.com/tokio-rs/axum.git
synced 2025-01-01 08:56:15 +01:00
f4716084a7
* Add `middleware::from_fn` for creating middleware from async fns * More trait impls for `Next` * Make `Next::run` consume `self` * Use `.router_layer` in example, since middleware returns early * Actually `Next` probably shouldn't impl `Clone` and `Service` Has implications for backpressure and stuff * Simplify `print-request-response` example * Address review feedback * add changelog link
14 lines
431 B
TOML
14 lines
431 B
TOML
[package]
|
|
name = "example-print-request-response"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
publish = false
|
|
|
|
[dependencies]
|
|
axum = { path = "../../axum" }
|
|
axum-extra = { path = "../../axum-extra" }
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version="0.3", features = ["env-filter"] }
|
|
tower = { version = "0.4", features = ["util", "filter"] }
|
|
hyper = { version = "0.14", features = ["full"] }
|