-
Notifications
You must be signed in to change notification settings - Fork 653
Investigate compat for transforming 0.1 Sink into 0.3 Sink #1362
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
Comments
@LucioFranco, since you mentioned you’d be interested in helping with this I’ll try and write up a bit more detail on what issues I encountered with it, tomorrow. |
@Nemo157 sounds good! I'll be waiting for it. |
Basically the issue is that in 0.1 Implementing My first thought on a way to support this with a small runtime cost is to add a custom |
The tarpc crate seems to have come up with similar code: https://github.com/google/tarpc/blob/master/bincode-transport/src/compat.rs (just FYI, found it coincidentally) I'd be happy to see 0.1 Sink compat in futures-rs since it's not always easy to work around using 0.1 sinks. |
Good note from the tarpc implementation, the extra |
Would it be a big problem to just "steal" the code from tarpc? The licenses of both projects are the same. |
This was implemented in #1364 |
The PR that added
Stream
andSink
to the compat layers (#1162) only added support for converting afutures(0.3)::Sink
into afutures(0.1)::Sink
because the API differences make the inverse transform non-straightforward. We should investigate whether this is possible at all, even if it requires some sort of extra runtime cost.The text was updated successfully, but these errors were encountered: