Technical requirements
For this and subsequent chapters, you will need to have the requirements mentioned in Chapter 1, Introducing the Rust Language, and the Rust toolchain installed. If you still don't have the Rust compiler toolchain installed, please follow the installation guide in Chapter 1, Introducing the Rust Language. Also, it would be helpful to have a text editor with a Rust extension installed and Rust tools such as rustfmt
or clippy
. If you don't have a text editor installed already, you can use open source software such as Visual Studio Code with the rust-analyzer
extension. As we're going to make HTTP requests to the application that we're going to create, you should have a web browser or other HTTP client installed.
Finally, the Rocket framework has a few releases, all of which are slightly different. We will only be discussing Rocket 0.5.0. Don't worry if you are planning to use a different version of Rocket, as the terminology and concepts...