Free course · for C programmers
Rust for C Developers
Map malloc/free, pointers, errno, tagged unions and make onto ownership, borrows, Result, enums and Cargo
You already know how memory, pointers and a compiler work. Each lesson puts a C habit next to its Rust equivalent, names exactly what changes, and asks you to port the C function to Rust. Undefined behaviour in the C examples was confirmed with sanitizers, and every Rust example was compiled and run.
Rust at a glance
What stays the same, what safe Rust rules out, and how to read rustc
Familiar syntax, different defaults
printf, const, integer rules, expressions and loops
Memory without malloc and free
Owners, borrows, slices and lifetimes instead of conventions
Data, absence and errors
Methods, tagged unions, NULL, errno and text
Build, unsafe, FFI and threads
Cargo, the unsafe boundary and data-race-free threads
Skip what you already know
Each lesson here teaches and checks the rule of the Academy lessons next to it. After this course, continue with the lessons it does not cover.