Getting to know the initial setup
In this section, we will cover the initial setup of two fusing pieces of code we built in Chapter 2, Designing Your Web Application in Rust, with the code that we built in Chapter 3, Handling HTTP Requests. This fusion will give us the following structure:
Here, we will register all the modules in the main
file, and then pull all these modules into the views to be used. We are essentially swapping the command-line interface from Chapter 2, Designing Your Web Application in Rust, with web views. Combining these modules gives us the following files in the code base:
├── main.rs ├── processes.rs ├── state.rs
Our to_do
module that we will be bolting on has the following structure:
├── to_do │ ├── mod.rs │ └...