Add example showing how to run axum on hyper 1.0 (#1791)

This commit is contained in:
David Pedersen
2023-02-26 19:05:12 +01:00
committed by GitHub
parent 1dc4b44472
commit 279a8e2bf0
2 changed files with 69 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
[package]
name = "example-hyper-1-0"
version = "0.1.0"
edition = "2021"
publish = false
[dependencies]
axum = { path = "../../axum" }
hyper = { version = "1.0.0-rc.3", features = ["full"] }
tokio = { version = "1.0", features = ["full"] }
tower-http = { version = "0.4", features = ["trace"] }
tower-hyper-http-body-compat = { version = "0.1", features = ["http1", "server"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }