This repository contains my code as I go through "The Book" (The Rust Programming Language). It includes exercise solutions, theoretical snippets, and final projects from the chapters.
The repository is structured as a Cargo Workspace, allowing all sub-projects to share a single build directory to save disk space and improve compilation speed.
- projects/ — Standalone projects developed throughout the book (e.g., Guessing Game, Minigrep, Web Server).
- chapters/ — Small code snippets and theory-based examples categorized by chapter.
Since this is a workspace, you should run commands from the root directory using the -p (package) flag.
Run a specific project:
cargo run -p guessing_gameRun tests for the entire workspace:
cargo testBuild all projects:
cargo build