Remove tokio/net feature from client feature#268
Remove tokio/net feature from client feature#268erickt wants to merge 1 commit intohyperium:masterfrom
tokio/net feature from client feature#268Conversation
Before this patch, `hyper-util`'s feature `client` depended on tokio's feature `net`, which in turn depends on `mio`. That causes `hyper-util` to fail to compile on platforms like Fuchsia, which don't support `mio`. So this patch instead moves the `tokio/net` dependency into the `tokio` feature to avoid this issue. Unfortunately though I think this is a breaking change, since now users might need to add the `tokio` feature. So either we could: 1. Bump the major version. 2. We could add some new features that we could use that parallel `client` and `client-legacy`. For example, `client-without-tokio` and `client-legacy-without-tokio`, and replace all the instances of `feature = "clienty"` feature checks with `any(feature = "client", feature = "client-legacy-without-tokio")`.
|
Hm, I think |
|
Yeah, I'm trying to get us back to the point where we can use As far as I can tell, |
|
Hm, the |
|
It looks like Looking at hyper-rustls use of hyper-util, it looks like they really are only using:
So this patch was an attempt to fix (2). For (3), maybe we could put all This all is a bit ugly though. Do you have any suggestions on what might work better? |
Before this patch,
hyper-util's featureclientdepended on tokio's featurenet, which in turn depends onmio. That causeshyper-utilto fail to compile on platforms like Fuchsia, which don't supportmio. So this patch instead moves thetokio/netdependency into thetokiofeature to avoid this issue.Unfortunately though I think this is a breaking change, since now users might need to add the
tokiofeature. So either we could:clientandclient-legacy. For example,client-without-tokioandclient-legacy-without-tokio, and replace all the instances offeature = "clienty"feature checks withany(feature = "client", feature = "client-legacy-without-tokio").What would you like us to do?