Skip to content

Commit 4069dda

Browse files
davidpdrsnseanmonstar
authored andcommitted
Update dependencies
Updates to 1.0 of hyper, http, and friends.
1 parent 11776bd commit 4069dda

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ edition = "2018"
1515
publish = false # no accidents while in dev
1616

1717
[dependencies]
18-
hyper = "=1.0.0-rc.4"
18+
hyper = "1.0.0"
1919
futures-channel = "0.3"
2020
futures-util = { version = "0.3", default-features = false }
21-
http = "0.2"
22-
http-body = "1.0.0-rc.2"
21+
http = "1.0"
22+
http-body = "1.0.0"
2323
bytes = "1"
2424
pin-project-lite = "0.2.4"
2525
socket2 = "0.5"
@@ -29,9 +29,9 @@ tower-service = "0.3"
2929
tower = { version = "0.4", features = ["make", "util"] }
3030

3131
[dev-dependencies]
32-
hyper = { version = "1.0.0-rc.3", features = ["full"] }
32+
hyper = { version = "1.0.0", features = ["full"] }
3333
bytes = "1"
34-
http-body-util = "0.1.0-rc.3"
34+
http-body-util = "0.1.0"
3535
tokio = { version = "1", features = ["macros", "test-util"] }
3636
tokio-test = "0.4"
3737

src/server/conn/auto.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use http::{Request, Response};
1313
use http_body::Body;
1414
use hyper::{
1515
body::Incoming,
16-
rt::{bounds::Http2ConnExec, Timer},
16+
rt::{bounds::Http2ServerConnExec, Timer},
1717
server::conn::{http1, http2},
1818
service::Service,
1919
};
@@ -75,7 +75,7 @@ impl<E> Builder<E> {
7575
B::Data: Send,
7676
B::Error: Into<Box<dyn StdError + Send + Sync>>,
7777
I: AsyncRead + AsyncWrite + Unpin + 'static,
78-
E: Http2ConnExec<S::Future, B>,
78+
E: Http2ServerConnExec<S::Future, B>,
7979
{
8080
let (version, io) = read_version(io).await?;
8181
let io = TokioIo::new(io);
@@ -99,7 +99,7 @@ impl<E> Builder<E> {
9999
B::Data: Send,
100100
B::Error: Into<Box<dyn StdError + Send + Sync>>,
101101
I: AsyncRead + AsyncWrite + Unpin + Send + 'static,
102-
E: Http2ConnExec<S::Future, B>,
102+
E: Http2ServerConnExec<S::Future, B>,
103103
{
104104
let (version, io) = read_version(io).await?;
105105
let io = TokioIo::new(io);
@@ -303,7 +303,7 @@ impl<E> Http1Builder<'_, E> {
303303
B::Data: Send,
304304
B::Error: Into<Box<dyn StdError + Send + Sync>>,
305305
I: AsyncRead + AsyncWrite + Unpin + 'static,
306-
E: Http2ConnExec<S::Future, B>,
306+
E: Http2ServerConnExec<S::Future, B>,
307307
{
308308
self.inner.serve_connection(io, service).await
309309
}
@@ -451,7 +451,7 @@ impl<E> Http2Builder<'_, E> {
451451
B::Data: Send,
452452
B::Error: Into<Box<dyn StdError + Send + Sync>>,
453453
I: AsyncRead + AsyncWrite + Unpin + 'static,
454-
E: Http2ConnExec<S::Future, B>,
454+
E: Http2ServerConnExec<S::Future, B>,
455455
{
456456
self.inner.serve_connection(io, service).await
457457
}

0 commit comments

Comments
 (0)