mirror of
https://github.com/tokio-rs/axum.git
synced 2024-10-23 17:36:39 +02:00
Update to hyper 1.0.0-rc.4
This commit is contained in:
parent
79ea2747e9
commit
4109796fff
2 changed files with 4 additions and 2 deletions
|
@ -6,9 +6,10 @@ publish = false
|
|||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
hyper = { version = "1.0.0-rc.3", features = ["full"] }
|
||||
hyper = { version = "1.0.0-rc.4", features = ["full"] }
|
||||
hyper-util = { git = "https://github.com/hyperium/hyper-util", rev = "f898015" }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower-http = { version = "0.4", features = ["trace"] }
|
||||
tower-hyper-http-body-compat = { version = "0.1", features = ["http1", "server"] }
|
||||
tower-hyper-http-body-compat = { version = "0.2", features = ["http1", "server"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -41,6 +41,7 @@ async fn main() {
|
|||
tracing::debug!("listening on {addr}");
|
||||
loop {
|
||||
let (tcp_stream, _) = tcp_listener.accept().await.unwrap();
|
||||
let tcp_stream = hyper_util::rt::TokioIo::new(tcp_stream);
|
||||
let service = service.clone();
|
||||
tokio::task::spawn(async move {
|
||||
if let Err(http_err) = http1::Builder::new()
|
||||
|
|
Loading…
Reference in a new issue