Rust Systems Programming
A Rust path covering ownership, lifetimes, traits, error handling, concurrency, iterators, smart pointers, HTTP services, and Axum templates.
A rigorous learning path for Rust systems programming covering ownership, borrowing, lifetimes, traits, concurrency, unsafe code, and systems design for building safe and fast software.
Complete "Ownership and Move Semantics" by making Compile-time safety guarantees produce s1 invalid after move without hard-coding the sample.
Next step: Explicit Lifetime Annotations
⏱ 0.5h
Solve "Explicit Lifetime Annotations": turn Valid reference with correct lifetime into References with lifetimes and pass the provided samples.
Prerequisites: Ownership and Move Semantics
Next step: Traits with Generic Bounds
⏱ 0.5h
Implement "Traits with Generic Bounds" so that Polymorphic behavior yields shared area method, including the edge case in the second sample.
Prerequisites: Explicit Lifetime Annotations
Next step: Result Type Error Handling
⏱ 0.5h
Complete "Result Type Error Handling" by making Result with Ok or Err value produce Result<File, Error> without hard-coding the sample.
Prerequisites: Traits with Generic Bounds
Next step: Thread Spawning with Channels
⏱ 0.5h
Solve "Thread Spawning with Channels": turn Results received via channel into received on main thread and pass the provided samples.
Prerequisites: Result Type Error Handling
Next step: Iterator Map and Filter
⏱ 0.5h
Implement "Iterator Map and Filter" so that A filtered and transformed vector yields [4, 16, 36], including the edge case in the second sample.
Prerequisites: Thread Spawning with Channels
Next step: Smart Pointers Box and Rc
⏱ 0.5h
Complete "Smart Pointers Box and Rc" by making Heap-allocated or shared data produce heap allocated without hard-coding the sample.
Prerequisites: Iterator Map and Filter
Next step: Rust HTTP Server with Axum
⏱ 0.5h
Run the rust snippet "Rust HTTP Server with Axum", capture stdout, and show which line demonstrates the documented behavior: "Build a type-safe HTTP server in Rust using Axum with extractors, JSON responses, error".
Prerequisites: Smart Pointers Box and Rc
Next step: Rust HTTP Client with Reqwest
⏱ 0.75h
Adapt "Rust HTTP Client with Reqwest" to a second input and compare the new output with the behavior described in "Make HTTP requests in Rust using reqwest with async/await, retry logic, JSON deserialization".
Prerequisites: Rust HTTP Server with Axum
Next step: Rust JWT Authentication
⏱ 0.75h
Run the rust snippet "Rust JWT Authentication", capture stdout, and show which line demonstrates the documented behavior: "Implement JWT authentication in Rust using the jsonwebtoken crate with HMAC-SHA256 signing,".
Prerequisites: Rust HTTP Client with Reqwest
Next step: Reqwest
⏱ 0.75h
- 11
Reqwest
Wire "Reqwest" into a scratch rust project, following "reqwest::get reqwest::get(url): Result<Response>", and record one working request/response pair.
Prerequisites: Rust JWT Authentication
Next step: Rust Axum REST API
⏱ 1h
Stand up "Rust Axum REST API" from its CLI, then modify "cargo new my-api && cd my-api && cargo add axum tokio sqlx" and show the documented behavior still holds.
Prerequisites: Reqwest
Next step: Capstone: Rust Systems Programming
⏱ 1.5h
Deliver the "Build a Log-Structured Store" blueprint with "Append-only segment writes" working and "Sparse key-to-offset index" recorded as evidence.
Prerequisites: Rust Axum REST API
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h