-
Notifications
You must be signed in to change notification settings - Fork 163
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
[WIP] Upgrade tokio to tokio 0.2 #214
Conversation
Thanks for this! I don't know personally how best to integrate with 0.2, I don't know how it's designed. I think it'd be best to name this a |
@alexcrichton Hey, I think I got a working tokio2 async version of In order to do this I had to write my own Another part of this was separating the Let me know what you think of the changes. I'm wondering if we should just merge deflate first (when you think it's ready), and work on the others afterwards. Thanks |
Thanks for this! The changes definitely look very extensive here, I think going so far as to add new I think it's fine to just focus on |
I just happened to stumble across this issue, I'm maintaining a crate |
ping |
(There's now tokio 0.3 too, which has new incompatible traits. |
Oh nice! I think it would probably be best to deprecate the support in favor of the |
There is now Tokio 1.0 |
This PR upgrades the async portion of
flate2
to use the newtokio 0.2
AsyncRead
andAsyncWrite
types.The main issue with this refactor is that the
AsyncRead
andAsyncWrite
types do not have to implementRead
andWrite
respectively. This means the generic constraints on theread::*
andwrite::*
encoders and decoders inflate2
are now incompatible with the newtokio 0.2
types.This means that types like
read::ZlibDecoder<TcpStreamReadHalf>
do not compile, sinceTcpStreamReadHalf
does not implRead
.