Rust for a C programmer

Teach Me Rust

Build fluency in Rust and Cargo through short lessons and programs you write yourself.

Current progress: both exercises in lesson 3 and their ownership explanations are complete.

Available lessons

  1. Follow a String through a call
    Track ownership and cleanup, then use Cargo to check what happens after a move.

  2. Borrow a string for a call
    Keep ownership with the caller while helpers borrow text and return borrowed views.

  3. Format text and numbers
    Print an aligned report and return a formatted String that owns its text.

References

Rust first steps
Cargo commands, basic syntax, ownership and borrowing terms, string and byte types.
Formatting
Placeholders, alignment, precision, output macros, and formatting for debugging.

Course roadmap

The next planned lesson is mutable borrowing with &mut, followed by a dedicated lesson on lifetimes.

Later planned topics: