3 Designing Your Web Application in Rust
Before you begin: Join our book community on Discord
Give your feedback straight to the author himself and chat to other early readers on our Discord server (find the "rust-web-programming-3e" channel under EARLY ACCESS SUBSCRIPTION).
We previously explored the syntax of Rust, enabling us to tackle memory management quirks and build data structures. However, just knowing syntax and memory management is not enough to effectively build fully working programs. As any experienced engineer will tell you, structuring code across multiple files and directories is an important aspect of building software.
In this chapter, we will build a basic command-line to-do program. We manage the dependencies needed to build our command-line program with Rust's Cargo. Our program will be structured in a scalable way where we build and manage our own modules, which will be imported into other areas of the program and...