Skip to content

Learning Rust through 'The Rust Programming Language' book - code examples and exercises from each chapter

Notifications You must be signed in to change notification settings

MasirJafri1/Rust_book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rust Book Learning Journey πŸ¦€

This repository contains my code implementations and exercises while working through The Rust Programming Language (also known as "The Rust Book").

About This Repository

As I progress through The Rust Book, I'm documenting my learning journey by implementing all the examples, exercises, and projects from each chapter. This repository serves as both a reference for my future self and a resource for others learning Rust.

Structure

The repository is organized by chapters from The Rust Book:

Rust_book/
β”œβ”€β”€ chapter_1/     # Getting Started
β”œβ”€β”€ chapter_2/     # Programming a Guessing Game
β”œβ”€β”€ chapter_3/     # Common Programming Concepts
└── ...

Each chapter directory contains:

  • Code examples from the book
  • Exercise solutions
  • Personal notes and experiments
  • Mini-projects related to the chapter's concepts

Learning Path

  • Chapter 1: Getting Started
  • Chapter 2: Programming a Guessing Game
  • Chapter 3: Common Programming Concepts
  • Chapter 4: Understanding Ownership
  • Chapter 5: Using Structs
  • Chapter 6: Enums and Pattern Matching
  • And more to come...

Running the Code

Each chapter contains independent Rust projects. To run any example:

cd chapter_X/project_name
cargo run

To run tests:

cargo test

Prerequisites

  • Rust and Cargo (install from rustup.rs)
  • Basic understanding of programming concepts

Resources

Progress Tracking

I update this repository regularly as I complete each chapter. Feel free to:

  • ⭐ Star this repo if you find it helpful
  • πŸ› Open an issue if you spot any mistakes
  • πŸ’‘ Suggest improvements or alternative approaches

About Me

Masir Jafri

I am Masir Jafri, a second year computer science grad who loves exploring new tech. Currently I am more into generative and Agentic AI. If you find this helpful drop a star and if you wanna connect me then below are my socials:

License

This project is open source and available for educational purposes. The code examples are based on The Rust Programming Language book.


Note: This is a learning repository. The code here represents my understanding at the time of writing and may not always reflect best practices. Feedback and suggestions are always welcome!

About

Learning Rust through 'The Rust Programming Language' book - code examples and exercises from each chapter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages