Rust

Safe, fast, reliable

100% free · no signup to read 5 chapters Programming language

Created

2010 by Mozilla (Graydon Hoare)

Type

Systems, compiled, ownership-based

Current version

Rust 1.77 (2024)

Powers

Firefox, Cloudflare Workers, Linux kernel

Memory safety

Without garbage collector

Used by

Mozilla, AWS, Microsoft, Linux kernel

File extension

.rs

Best for

Systems programming, CLIs, WebAssembly

What is Rust?

Rust is a systems programming language focused on safety, speed, and concurrency. It achieves memory safety without a garbage collector through its unique ownership system — the compiler catches bugs that would crash C/C++ programs.

Why Rust?

Rust gives you C++-level performance with guarantees that prevent null pointer dereferences, data races, and dangling references — all at compile time.

Feature Rust C++ Go
Memory safety Compile-time (ownership) Manual GC
Performance Excellent Excellent Good
Learning curve Steep Hard Easy
Concurrency Safe by default Manual Goroutines
Best for Systems, embedded, WASM Legacy systems, games Cloud, CLIs

What you'll learn

Chapter What you'll know
Introduction What Rust is, Cargo, hello world
Ownership Ownership, borrowing, lifetimes
Structs & Enums Custom types, pattern matching
Error Handling Result, Option, the ? operator
Traits Shared behaviour, polymorphism

Start with introduction.