Rust: Systems Programming Without Fear

Shriira Press

Preface

A comprehensive, self-contained guide to Rust, the language that delivers the holy grail of systems programming: the speed and control of C/C++ wit…

Welcome to Rust: Systems Programming Without Fear.

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.

This title is part of the ShriIra library and is free to read in full, right here — our small contribution to making world-class knowledge easy to reach.

A note on reading it: open the Contents menu at the top of the reader to jump between chapters, use the Aa menu to set a comfortable text size, theme (light, sepia, or night), and single- or two-page layout. Your place is saved automatically, so you can always pick up where you left off.

We hope it serves you well.

— Shriira Press

Contents

  1. Chapter 1 — What Is Rust?
  2. Chapter 2 — Getting Started: Cargo, Tooling, and a First Program
  3. Chapter 3 — Core Language: Types, Functions, and Control Flow
  4. Chapter 4 — Ownership, Borrowing, and Lifetimes
  5. Chapter 5 — Structs, Enums, and Pattern Matching
  6. Chapter 6 — Error Handling: Result, Option, and panic
  7. Chapter 7 — Generics, Traits, and Trait Objects
  8. Chapter 8 — Collections, Iterators, and Closures
  9. Chapter 9 — Modules, Crates, and the Ecosystem
  10. Chapter 10 — Smart Pointers and Memory
  11. Chapter 11 — Concurrency and Parallelism
  12. Chapter 12 — Async Rust and Systems Programming
  13. Chapter 13 — Testing, Tooling, and the Profession
  14. Appendix A — Glossary and Quick Reference
  15. Appendix B — Further Reading and Resources
0%
1/1