Loading lesson…
Level 1 · Apprentice0 XP
Memory safety without a garbage collector, and the jobs Rust is best at.
Step 1 / 6
ProblemFor decades, systems code was written in C or C++ for speed. Around 70% of serious security bugs in large C/C++ codebases are memory-safety bugs: use-after-free, buffer overflows, data races.
← → step
Before this: How a HashMap works inside
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Install Rust with rustup, create a project with cargo new, add the serde and serde_json crates, and print a struct as JSON. Build it in release mode and note the binary size.