Programming · Ebook
Rust: Systems Programming Without Fear
by Shriira Press
A comprehensive, self-contained guide to Rust, the language that delivers the holy grail of systems programming: the speed and control of C/C++ with the safety of a high-level language — and no garbage collector. Rust catches whole classes of bugs (use-after-free, data races, null dereferences) at compile time, through its famous ownership system, while compiling to fast native code. This book takes you from "never written Rust" to confidently building real programs: the core language, the ownership model that makes Rust unique, its expressive type system and error handling, concurrency, async, and the tooling and ecosystem that make Rust a joy to ship with. It blends intuition (why each feature exists), concepts (how the compiler thinks), and runnable code.
Contents
- 1Preface
- 2Chapter 1 — What Is Rust?
- 3Chapter 2 — Getting Started: Cargo, Tooling, and a First Program
- 4Chapter 3 — Core Language: Types, Functions, and Control Flow
- 5Chapter 4 — Ownership, Borrowing, and Lifetimes
- 6Chapter 5 — Structs, Enums, and Pattern Matching
- 7Chapter 6 — Error Handling: Result, Option, and panic
- 8Chapter 7 — Generics, Traits, and Trait Objects
- 9Chapter 8 — Collections, Iterators, and Closures
- 10Chapter 9 — Modules, Crates, and the Ecosystem
- 11Chapter 10 — Smart Pointers and Memory
- 12Chapter 11 — Concurrency and Parallelism
- 13Chapter 12 — Async Rust and Systems Programming
- 14Chapter 13 — Testing, Tooling, and the Profession
- 15Appendix A — Glossary and Quick Reference
- 16Appendix B — Further Reading and Resources
