Closed briansmith closed 4 years ago
tokio-rustls
already has a branch that supports std::future
, but tokio 0.2
doesn't seem to be using futures-io
.
I will try to port it to tokio 0.2
this weekend. https://github.com/quininer/tokio-rustls/issues/40
@seanmonstar Do you have any suggestions for dealing with Tokio + std::future
right now? I imagine you must have already solved it to get Hyper working with std::future
.
So far in hyper, I've just been using tokio_io::{AsyncRead, AsyncWrite}
.
afaik I remember Carl mentioning that he is not sure what to do with AsyncRead
and AsyncWrite
so for now they left it in tokio-io
so it can go either like that or eventually it will alias futures
's traits
I ported hyper-rustls to use this branch and everything seems to be working :D
@quininer btw Carl removed tokio-futures
and now they just re-export from futures crate
tokio-rustls 0.12.0
has been released.
See the Twitter thread https://twitter.com/seanmonstar/status/1148732643120275456. It would be great for tokio-rustls to use
std::future
so that the newstd::future
-based hyper can make use of it. I'm not sure what's all required to make that happen.