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

Update futures2 to use the futures 0.2 release #304

Merged
merged 1 commit into from
Apr 9, 2018

Conversation

srijs
Copy link
Contributor

@srijs srijs commented Apr 7, 2018

No description provided.

@dimbleby
Copy link

dimbleby commented Apr 8, 2018

Seeing as how futures v0.2.0-beta doesn't seem to compile (below) there is, so far as I can see, currently no way to use tokio with features = ["unstable-futures"].

That's gonna make it hard for people to experiment with the newly available futures 0.2 release.

So: it would be extremely helpful if you could take this pull request and publish, please!

   Compiling futures v0.2.0-beta
error[E0603]: module `close` is private
   --> /data/dch/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.2.0-beta/src/lib.rs:298:31
    |
298 |         WithFlatMap, SinkExt, close, flush,
    |                               ^^^^^

error[E0603]: module `flush` is private
   --> /data/dch/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.2.0-beta/src/lib.rs:298:38
    |
298 |         WithFlatMap, SinkExt, close, flush,
    |                                      ^^^^^

error: aborting due to 2 previous errors

error: Could not compile `futures`.

@carllerche
Copy link
Member

Based on this thread, it doesn't seem like futures 0.2 is being considered stable. Also, there are still a number of issues (#251), including a severe memory safety bug (#254).

Given all this, and no timeline for making the futures2 feature flag stable, I wonder if a better route would be a futures compatibility layer. @seanmonstar is exploring this here.

Thoughts?

@carllerche
Copy link
Member

Anyway, since this fixes the build, I will merge this PR. We will wait for @aturon to be back from PTO before making any decisions.

Thanks for the PR @srijs.

@carllerche carllerche merged commit dbcd835 into tokio-rs:master Apr 9, 2018
@dimbleby
Copy link

dimbleby commented Apr 9, 2018

Ack that futures 0.2 may not be stable. But even so: as I understand it the point of that release was to ask people to experiment with it. Seeing as how tokio is likely the principal method for most people actually to execute their futures... it would be very helpful for there to be a tokio release that was compatible.

(I've no objection to that being behind an unstable feature flag).

@carllerche
Copy link
Member

carllerche commented Apr 9, 2018 via email

@seanmonstar
Copy link
Member

@dimbleby I'd recommend not enabling the unstable feature, as it has a use-after-free bug in it.

@dimbleby
Copy link

dimbleby commented Apr 9, 2018

I'm not especially bothered about the mechanism for using this with futures 0.2 - or even that it has bugs.

Simply, I have gone: futures 0.2 is released, they'd like me to play with it, OK I'll do that, well shucks tokio isn't compatible.

Since my plan had been: let's see what happens if I port my futures 0.1 code to futures 0.2, and since that code uses tokio - game over.

Re resource shortage: maybe it's worth reaching out to people working on futures? Seems like it should be in their interest to have a tokio that's compatible with futures 0.2.

@carllerche
Copy link
Member

@dimbleby the futures team is aware of the resource shortage.

@srijs srijs deleted the futures-0.2-released branch April 10, 2018 13:10
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.

4 participants