How to use futures-await crate in 2018 preview


#1

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/lib.rs:34:5
   |
34 | use futures::prelude::*;
   |     ^^^^^^^ can't find crate

What I did wrong?


#2

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.


#3

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


#4

@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).


#5

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