Skip to content

Conversation

tesaguri
Copy link
Contributor

@tesaguri tesaguri commented Jan 2, 2021

  • e37d0f7: Remove dependency on hyper's http1 and tcp features by default

hyper v0.14.2 exposed connect types without http1/http2 features so they are not required anymore.

bytes does not appear in trait bounds of tokio::io::Async{Read,Write} methods anymore so the dependency can be removed.

Comment on lines -33 to +39
impl<T: Connect> TimeoutConnector<T> {
impl<T> TimeoutConnector<T>
where
T: Service<Uri> + Send,
T::Response: AsyncRead + AsyncWrite + Send + Unpin,
T::Future: Send + 'static,
T::Error: Into<BoxError>,
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Connect trait still depends on http1/http2 features so I had to expand the trait bounds manually.

@hjr3
Copy link
Owner

hjr3 commented Jan 2, 2021

Thank you. I was waiting for that change to land.

@hjr3 hjr3 merged commit a85ff3d into hjr3:master Jan 2, 2021
@tesaguri tesaguri deleted the cleanup-deps branch January 2, 2021 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants