Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't depend on hyper/tcp feature by default #100

Merged
merged 1 commit into from
Jan 15, 2020

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Jan 7, 2020

On fuchsia, we don't support the mio and tokio runtime yet, and so in order to use hyper-rustls, we need to compile it with default-features = false. Unfortunately, in #96, @CryZe added a hard requirement for the hyper "tcp" feature, which pulls in the tokio runtime.

To restore our ability to use hyper-rustls, this patch migrates the "hyper/tcp" hard feature requirement to an optional "tcp" feature. Note that we don't need to change the default case, because the "hyper/runtime" feature already depends on "hyper/tcp".

On fuchsia, we don't support the mio and tokio runtime yet, and so in order
to use hyper-rustls, we need to compile it with `default-features = false`.
Unfortunately, in rustls#96, @CryZe added
a hard requirement for the hyper "tcp" feature, which pulls in the tokio
runtime.

To restore our ability to use hyper-rustls, this patch removes the
"hyper/tcp" hard feature requirement.
@erickt
Copy link
Contributor Author

erickt commented Jan 7, 2020

I just checked, and it actually looks like we don't even need this feature for cargo test --no-default-features, so I removed the optional tcp feature.

@CryZe
Copy link
Contributor

CryZe commented Jan 7, 2020

Whoops, sorry about that ^^'

@erickt
Copy link
Contributor Author

erickt commented Jan 8, 2020

@CryZe No worries! This isn't blocking us yet, I'm just doing prep work to update to hyper 0.13. Thanks for doing the upgrade!

@erickt
Copy link
Contributor Author

erickt commented Jan 14, 2020

@ctz gentle ping :)

Copy link
Contributor

@lucab lucab left a comment

Choose a reason for hiding this comment

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

LGTM

@lucab lucab merged commit 104bfbb into rustls:master Jan 15, 2020
@erickt erickt deleted the no-required-tokio-rt branch January 15, 2020 17:45
@erickt
Copy link
Contributor Author

erickt commented Jan 15, 2020

Thanks @lucab! Would it be possible to also get a 0.19.1 release cut for this change?

@lucab
Copy link
Contributor

lucab commented Jan 15, 2020

You'd need @ctz for publishing a new crate version. He usually batches GH activity around the weekend.

@erickt
Copy link
Contributor Author

erickt commented Jan 15, 2020

Awesome, thanks!

@erickt erickt mentioned this pull request Jan 16, 2020
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.

3 participants