Skip to content

Rust for TypeScript Developers

Learn Rust by mapping it to the TypeScript you already know. Runnable examples on the real compiler, side-by-side comparisons, quizzes — all in your browser.

Introduction & Setup

Why Rust for TS devs, the mental-model shifts, and the toolchain. Start →

Rust 101 — Fundamentals

Variables, functions, structs, enums, Option/Result — TypeScript ↔ Rust. Learn →

Rust You Won't Find in TypeScript

Ownership, borrowing, lifetimes, traits — the borrow checker, explained. Explore →

Concurrency

Threads, channels, Arc/Mutex, async/await with Tokio — fearless concurrency. Dive in →

Building an API with Axum

Routing, extractors, state, serde — Express/Nest ↔ Axum. Build →

Advanced Rust

Generics & trait bounds, trait objects, iterators, macros, smart pointers. Go deeper →

Tooling, Testing & Deployment

cargo, clippy, rustfmt, cargo test, cross-compile, Docker, CI. Ship it →

Comparison-first

Every concept starts from the TypeScript you know, then shows the Rust way.

Run Rust in your browser

Runnable examples compile and run on the official Rust Playground — real rustc, real compiler errors, no setup.

Quizzes & progress

Check your understanding after each lesson; your progress is saved locally.

Bilingual

Available in English and ไทย — switch anytime from the top bar.