← All Learning Paths

Rust Systems Programming

A Rust path covering ownership, lifetimes, traits, error handling, concurrency, iterators, smart pointers, HTTP services, and Axum templates.

technicaladvanced13 nodes12.25h total

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.

  1. Complete "Ownership and Move Semantics" by making Compile-time safety guarantees produce s1 invalid after move without hard-coding the sample.

    Completion criteria: Attach the solution file, two passing sample runs, and one failing run whose error matches the contract for "s1 invalid after move".

    Next step: Explicit Lifetime Annotations

    ⏱ 0.5h

  2. Solve "Explicit Lifetime Annotations": turn Valid reference with correct lifetime into References with lifetimes and pass the provided samples.

    Prerequisites: Ownership and Move Semantics

    Completion criteria: Attach the solution file, two passing sample runs, and one failing run whose error matches the contract for "Valid reference with correct lifetime".

    Next step: Traits with Generic Bounds

    ⏱ 0.5h

  3. 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

    Completion criteria: Show a test command that validates "Polymorphic behavior" and "shared area method" and passes after your fix.

    Next step: Result Type Error Handling

    ⏱ 0.5h

  4. 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

    Completion criteria: Submit a solution that passes both samples (Result with Ok or Err value to Result<File, Error>) and attach the failing case you fixed.

    Next step: Thread Spawning with Channels

    ⏱ 0.5h

  5. 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

    Completion criteria: Attach the solution file, two passing sample runs, and one failing run whose error matches the contract for "received on main thread".

    Next step: Iterator Map and Filter

    ⏱ 0.5h

  6. 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

    Completion criteria: Attach the solution file, two passing sample runs, and one failing run whose error matches the contract for "A filtered and transformed vector".

    Next step: Smart Pointers Box and Rc

    ⏱ 0.5h

  7. 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

    Completion criteria: Show a test command that validates "Heap-allocated or shared data" and "heap allocated" and passes after your fix.

    Next step: Rust HTTP Server with Axum

    ⏱ 0.5h

  8. 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

    Completion criteria: Paste the command, the exit code, and the output line matching "Build a type-safe HTTP server in Rust using Axum with extractors, JSON responses, error"; then show a second run with a changed parameter. in "Rust Systems Programming" step 8.

    Next step: Rust HTTP Client with Reqwest

    ⏱ 0.75h

  9. 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

    Completion criteria: Save two runs of "Rust HTTP Client with Reqwest" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Rust JWT Authentication

    ⏱ 0.75h

  10. 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

    Completion criteria: Change one constant in "Rust JWT Authentication", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: Reqwest

    ⏱ 0.75h

  11. 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

    Completion criteria: Attach one successful call and one invalid call against "Reqwest", citing "reqwest::get reqwest::get(url): Result<Response>" as the documented surface.

    Next step: Rust Axum REST API

    ⏱ 1h

  12. 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

    Completion criteria: Run "Best for Rust backend APIs needing Axum's ergonomic routing, SQLx compile-time checked", replace one module, and show the entry point still returns the documented output; include the diff.

    Next step: Capstone: Rust Systems Programming

    ⏱ 1.5h

  13. 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

    Completion criteria: Run the project's test command for "Build a Log-Structured Store", paste the passing output, and attach the acceptance note for "Append-only segment writes" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h