Toying around with tokio 0.1, futures 0.3-alpha, and async/wait.
src/main.rs implements a very basic HTTP fileserver, using tokio 0.1, futures 0.3-alpha, and async/await.
The 0.1 compatibility methods from (nightly) futures@0.3 are used to map the new futures from/to the old (stable) ones that tokio uses.
The code is commented extensively.
For futures 0.3, 0.1 compat, tokio, async/await:
- Futures 0.1 Compatibility Layer blog post (WIP)
- Futures 0.3-alpha futures::compat docs
- Rust: Getting started with nightly async/await support blog post
- rust-lang async/await RFC
For working with tokio_threadpool::blocking
: