Improving our example 1-variables 215 Let's start by setting up our example. We'll use the “library” code from d-multiple-threads example in Chapter 8 (our last version of the example), but we'll change the main. rs file by adding a shorter and simpler example. Let's set up the base example that we'll iterate on and improve in this chapter. Setting up the base example Note Y ou can find this example in this book's Git Hub repository under ch09/a-coroutines-variables. Perform the following steps: 1. Create a folder called a-coroutines-variables. 2. Enter the folder and run cargo init. 3. Delete the default main. rs file and copy everything from the ch08/d-multiple-threads/src folder into the ch10/a-coroutines-variables/src folder. 4. Open Cargo. toml and add the dependency on mio to the dependencies section: mio = {version = "0. 8", features = ["net", "os-poll"]} Y ou should now have a folder structure that looks like this: src |--runtime |--executor. rs |--reactor. rs |--future. rs |--http. rs |--main. rs |--runtime. rs We'll use corofy one last time to generate our boilerplate state machine for us. Copy the following into main. rs : ch09/a-coroutines-variables/src/main. rs mod future; mod http; mod runtime; use crate:: http::Http; use future::{Future, Poll State};