Skip to content

Rust / Intermediate · Free public pilot

Intermediate Rust in 7 Days

Build a reading queue that parses typed commands, protects its state and reports results in a predictable order.

Start your first lesson →

Build on Rust beginner.

Come in comfortable with ownership, borrowing, enums, Result and modules. Allow about 85–100 minutes per day for reading and practice. Split a day across sessions if you need more time.

Run Rust 2024 in your browser with code-playpad’s experimental compiler. The first Run downloads about 57 MB and caches the toolchain. Enter console input before pressing Run.

Each day ends with independent practice. Day 7 includes a multi-file project, an optional Cargo download and a review to try after a few days. Progress is saved in this browser.

Need a refresher? Review Rust Beginner →

Continue with Advanced Rust →

Day 1 · About 114 minutes

Design Types Around Rules

Turn a beginner reading tracker into a model with valid IDs and explicit state transitions.

  1. From Reading Tracker to Reading Queue 32 min · Read, predict and practice
  2. Put Data on Enum Variants 26 min · Read, predict and practice
  3. Make a State Transition Explicit 26 min · Read, predict and practice
  4. Checkpoint: Validate a Reading Target 30 min · Independent checkpoint

Day 2 · About 112 minutes

Borrowed Data and Lifetimes

Return and store views into input while making their lifetimes clear.

  1. Accept a Slice at a Read-Only Boundary 26 min · Read, predict and practice
  2. Tie a Returned Borrow to Its Input 28 min · Read, predict and practice
  3. Store a Borrowed View in a Struct 28 min · Read, predict and practice
  4. Checkpoint: Borrow an Input Field 30 min · Independent checkpoint

Day 3 · About 112 minutes

Generics and Traits

Reuse a data shape or operation across types and state the behavior it needs.

  1. Use One Data Shape with Several Types 26 min · Read, predict and practice
  2. Require a Behavior with a Trait Bound 28 min · Read, predict and practice
  3. Use Standard Traits at an API Boundary 28 min · Read, predict and practice
  4. Checkpoint: Report Different Records 30 min · Independent checkpoint

Day 4 · About 116 minutes

Ordered Collections and Iterators

Protect unique IDs and derive reports from borrowed records.

  1. Keep Unique Keys in an Ordered Map 26 min · Read, predict and practice
  2. Filter and Transform a Borrowed Collection 34 min · Read, predict and practice
  3. Count and Sum Without an Intermediate Vector 26 min · Read, predict and practice
  4. Checkpoint: Report Pending Books in ID Order 30 min · Independent checkpoint

Day 5 · About 107 minutes

Typed Errors and Parsing

Parse commands into borrowed values and return errors callers can handle.

  1. Give Callers an Error They Can Match 26 min · Read, predict and practice
  2. Attach a Reason to a Missing Field 25 min · Read, predict and practice
  3. Parse a Command Before Running It 26 min · Read, predict and practice
  4. Checkpoint: Parse a Finish Request 30 min · Independent checkpoint

Day 6 · About 105 minutes

I/O Boundaries and Tests

Inject input and output, replay a fixture and test what survives rejection.

  1. Read the Same Way from stdin or Memory 25 min · Read, predict and practice
  2. Capture a Report with Write 25 min · Read, predict and practice
  3. Replay a Fixture and Compare the Transcript 25 min · Read, predict and practice
  4. Checkpoint: Test the Whole Input Loop 30 min · Independent checkpoint

Day 7 · About 158 minutes

Build the Reading Queue

Run, test and extend a multi-file queue, then apply the design to a loan log.

  1. Run the Reading Queue 24 min · Read, predict and practice
  2. Follow a Borrow Through the Queue 24 min · Read, predict and practice
  3. Prove Rejections Preserve the Queue 24 min · Read, predict and practice
  4. Show the Next Pending Book 26 min · Read, predict and practice
  5. On Your Own: A Library Loan Log 60 min · Independent checkpoint
  6. Come Back Later: Borrowing and State 45 min · Extra delayed review