Exerpad
🔥 1
10 XP
Lesson 4 · Chapter: Welcome+10 XP for reading

What Is Rust Used For?

Rust shows up wherever software must be fast and unbreakable at the same time. A tour:

🧱 The foundations. Operating systems, browsers, and drivers — the code everything else runs on. Rust is now inside Linux, Windows, and Firefox.

⚡ Speed-critical services. When Discord needed a service to handle millions of users without pauses, they rewrote it in Rust. Cloudflare runs Rust to route a big slice of the internet's traffic.

🎮 Game engines. Rust game engines like Bevy are growing fast — games need every drop of speed, and crashes ruin the fun.

🖥 Design tools in your browser. Figma's rendering engine compiles Rust to WebAssembly — Rust running inside a web page at near-native speed.

🤖 Tiny computers. Robots, sensors, and gadgets with barely any memory — Rust's no-waste design fits where other languages can't even load.

rust
fn main() {
let uses = ["kernels", "browsers", "games", "servers", "robots"];
for u in uses {
println!("Rust powers {}", u);
}
}
Output
Press Run to see the output.
Did you know?
Rust has no garbage collector — instead, the compiler figures out exactly when memory is finished being used, at compile time. It's like a chef who cleans the kitchen while cooking, so there's never a mess to stop for.

The pattern: when software absolutely cannot afford to be slow or to crash — Rust gets the call.