How to use futures-await crate in 2018 preview


Hi, everyone.

I am unable to use futures-await crate, the problem is: I cannot import futures_await as futures:
extern crate futures_await as futures does not works and use futures_await as futures not works either, it fails with error:

can't find crate for `futures`
  --> lib-epoc-proc/src/
34 | use futures::prelude::*;
   |     ^^^^^^^ can't find crate

What I did wrong?


Which version of futures_await are you using in your Cargo.toml? When I try to pull in 0.2.0-alpha it fails but when I use 0.1 it all works fine.

Also, this kind of question usually gets quicker feedback on IRC, Gitter, or Discord.


The futures-await crate is basically dead; real async/await syntax is in nightly now.


@steveklabnik, I expecting it a lot, but actix currently works only with futures 0.1 (AFAIK), and futures-await currently the only way put in order the callbacks I have (and make it refactorable in a future).


@ehiggs, I am using futures-await = "0.1.1"