Help with std::await

I have a problem. I try to use the following example from, but I get the following error during compile:

error[E0432]: unresolved import `std::await`
  --> /home/linkted/.cargo/registry/src/
35 | pub use std::await as std_await;
   |         ^^^^^^^^^^^^^^^^^^^^^^^ no `await` in the root

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: Could not compile `tokio-async-await`.

To learn more, run the command again with --verbose.

I already switch to nightly.

Thank you for your help.

I think this codebase was designed for the old await!(future) macro syntax and was not adapted to the new future.await syntax yet.

@HadrienG Do you known any example with the new syntax?

This is WIP, but quickly shaping up to be the gentlest introduction to async/await out there.

A more elaborate usage example would be runtime, which really aims to be a macro-based demo of all the things that async/await could do in the future.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.