This repository contains Rust exercises inspired by "The Rust Programming Language" book (commonly known as "The Book"). It serves as a practical workspace to implement and experiment with Rust concepts through small projects.
Features
- A simple guessing game implemented in Rust demonstrating basic input/output, control flow, and random number generation.
- Reference folder presumably containing additional learning materials or code snippets (details not specified).
Tech Stack
- Rust programming language
- rand crate for random number generation
Getting Started
Prerequisites
- Rust toolchain installed (https://rustup.rs/)
Running the Guessing Game
-
Navigate to the guessing_game directory:
cd guessing_game -
Build and run the project using Cargo:
cargo run -
Follow the on-screen prompts to play the guessing game.
Project Structure
rust_exercises/
βββ guessing_game/ # Rust project implementing a number guessing game
β βββ src/
β β βββ main.rs # Main source code for the guessing game
β βββ Cargo.toml # Cargo manifest for the guessing game
βββ Reference/ # Additional reference materials (contents unspecified)
βββ README.md # This file
Future Work / Roadmap
- Expand exercises to cover more Rust language features and idioms.
- Add documentation and comments to existing code for clarity.
- Include tests and benchmarks where applicable.
- Populate the Reference directory with curated learning resources or code examples.
- Possibly modularize the guessing game for reuse or extension.
Note: This README assumes the Reference folder contains supplementary materials, though details are not provided.