Skip to content

Subodhkd001/Rust-Book-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

πŸ¦€ The Rust Book Projects

This repository serves as a centralized hub for my journey through The Rust Programming Language. Each project represents a core milestone in mastering memory safety, concurrency, and systems-level architecture without a garbage collector.

πŸš€ Featured Projects

Project Core Concepts Status
Minigrep I/O, Iterators, Lifetimes, Error Handling βœ… Completed
Multi-threaded Server Concurrency, Thread Pools, TCP Listeners βœ… Completed
Guessing Game Variables, Match Control Flow, Randomness βœ… Completed

πŸ— Project Architectures

A CLI tool that replicates the basic functionality of grep. This project focused on Separation of Concerns (moving logic from main.rs to lib.rs) and Test-Driven Development.

graph LR
    A[CLI Input] --> B[Config Parser]
    B --> C{Search Logic}
    C --> D[Case Sensitive]
    C --> E[Case Insensitive]
    D --> F[Stdout]
    E --> F

Loading

An implementation of a web server from scratch. The highlight here is the custom Thread Pool implementation to handle multiple requests asynchronously without spawning unlimited threads.

sequenceDiagram
    participant Browser
    participant Server
    participant ThreadPool
    participant Worker

    Browser->>Server: HTTP Request
    Server->>ThreadPool: Execute(Job)
    ThreadPool->>Worker: Assign Task
    Worker-->>Browser: HTTP Response (200 OK / 404)

Loading

🧠 Key Learning Milestones

  • Ownership & Borrowing: Understanding how Rust manages memory at compile-time.
  • Error Handling: Moving from expect to idiomatic Result<T, E> propagation.
  • Zero-Cost Abstractions: Utilizing iterators and closures for performant code.
  • Concurrency: Managing shared state safely using Arc and Mutex.

πŸ›  Tech Stack


How to use this Repo

Each link leads to a standalone repository containing the full source code and unit tests for that specific implementation.

About

Projects from The Rust Book

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors