Free course · for JavaScript, TypeScript and Node.js developers

Rust for Node.js Developers

Map JavaScript and TypeScript habits to Rust: objects, null and undefined, array methods, try/catch, npm and Promises

You already ship JavaScript or TypeScript. Each lesson puts a Node.js habit next to its Rust equivalent, names exactly what changes, and asks you to port the function to Rust. Every JavaScript example was run on Node.js 22, TypeScript was type-checked in strict mode, and every Rust example was compiled and run.

5 units · 20 lessons · covers 33 Academy lessons · complete lessons free without registration

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.

This courseAcademy lessons it covers
Node.js runtime vs compiled RustWhat Rust Is (Rust Basics)
Garbage collection vs deterministic dropDrop & Scope (Ownership Mastery)
TypeScript types vs Rust typesReading rustc (Rust Basics)
console.log vs println!Hello, Rust (Rust Basics), Printing Values (Rust Basics)
const and let vs let and let mutVariables (Rust Basics)
Number vs Rust integer typesNumbers (Rust Basics), Operators & Casting (Rust Basics)
JavaScript functions vs fnFunctions (Rust Basics), Parameters (Rust Basics), Block Expressions (Rust Basics)
Truthiness vs bool, if and matchBooleans (Rust Basics), Control Flow (Rust Basics)
Classes and objects vs structsStructs (Rust Basics), Using Methods (Rust Basics)
TypeScript unions vs enumsEnums & Match (Rust Basics), Pattern Matching (Rust Basics)
null, undefined and ?? vs OptionOption & Result (Rust Basics)
Array methods vs iteratorsIterators (Ownership Mastery), Iterator Pipelines (Ownership Mastery)
Objects and Map vs HashMapCollections (Rust Basics)
UTF-16 strings vs UTF-8 StringStrings & UTF-8 (Rust Basics), Characters & Text (Rust Basics)
Shared references vs ownershipOwnership (Ownership Mastery), Moves Across Functions (Ownership Mastery)
Mutating arguments vs borrowingFirst References (Rust Basics), Borrowing (Ownership Mastery), Mutable Borrows (Ownership Mastery)
TypeScript interfaces vs traitsTraits (Ownership Mastery)
try/catch vs ResultHandling Failure (Rust Basics), Error Design (Cargo & Real Projects)
npm and package.json vs CargoDependencies (Cargo & Real Projects)
Promises vs futuresFutures (Concurrency & Async)