Example using Rust futures with async/await as of May 2019
MIT License
It's not immediately obvious what crates one should use trying to get .await
working with Rust in
May, 2019.
To help that cause, I've created this crate. It does a single http request to
https://jsonplaceholder.typicode.com/todos/1
using hyper, and prints the result. This should work
as a good starter for projects using tokio or hyper with async/await syntax.
This uses:
fut.await
syntaxThe crate is fairly simple, so it should be easy to explore.
Thanks to: