Chapter 5: Memory Management in Rust
In Section 1, Getting Started with Systems Programming in Rust, we covered Cargo (the Rust development toolkit), a tour of the Rust language, an introduction to the Rust Standard Library, and standard library modules for managing process environment, command-line, and time-related functions. While the focus of Section 1, Getting Started with Systems Programming in Rust, was to provide an overview of the landscape and the foundation for system programming in Rust, Section 2, Manage and Control System Resources in Rust, gets into the details of how to manage and control system resources in Rust, including memory, files, terminals, processes, and threads.
We are now entering Section 2, Manage and Control System Resources in Rust, of the book. Figure 5.1 provides the context for this section:
In this chapter, we will focus on memory management. The following are the key...