Tuesday, September 01, 2026

JS/TS => Rust

 Rust Is Eating JavaScript | Lee Robinson

JavaScript build tools historically written in JavaScript or TypeScript (like Babel, Webpack, Prettier, and ESLint) hit peak optimization. To drastically improve build times, developer tools shifted toward systems programming languages—primarily Rust.

Rust provides native-level performance, strict memory safety at compile time without garbage collection, and strong WebAssembly (WASM) interoperability. While initially met with skepticism due to its steep learning curve, Rust has effectively conquered the JavaScript tooling ecosystem:

  • Toolchain Dominance: Major bundlers, formatters, linters, and compilers in popular frameworks (Next.js, Vite, Deno, Tailwind CSS) now run on Rust.

  • AI & Agent Synergy: Rust's strict compiler makes it exceptionally well-suited for AI coding agents, as code that compiles is far more likely to be runtime-correct.

  • Beyond JavaScript: This paradigm shift has expanded into other language ecosystems, such as Python (uv, Ruff).

1. Compilers, Transpilers & All-in-One Suites

  • SWC: An extensible Rust-based platform for compilation, minification, and bundling. It serves as the underlying engine for Next.js, Deno, and Parcel.

  • Oxc (Oxlint / Oxfmt): A suite of high-performance tools written in Rust including a parser, linter (Oxlint), and formatter (Oxfmt) designed as ultra-fast replacements for ESLint and Prettier.

  • Biome (formerly Rome): An all-in-one toolchain for JS/TS providing linting (with type-aware capabilities), formatting, and parsing.

2. Bundlers & Build Tools

  • Turbopack: A Rust-based bundler developed by Vercel powering the Next.js Compiler.

  • Rolldown: A Rust bundler created under the VoidZero umbrella to replace Rollup and esbuild in Vite.

  • Rspack: A high-performance Rust bundler designed as a drop-in replacement with full Webpack API compatibility.

  • esbuild: A fast JS bundler and minifier written in Go that originally sparked the movement toward high-performance developer tooling.

3. Styling & CSS Tools

  • Lightning CSS: A fast CSS parser, transformer, bundler, and minifier written in Rust.

  • Tailwind CSS v4 (Oxide Engine): Uses Rust and Lightning CSS to accelerate full and incremental CSS builds.

4. Runtimes, Package Managers & Infrastructure

  • Deno: A modern runtime for JavaScript/TypeScript built with Rust (using Rust for its internal linter, formatter, and docs generator).

  • Bun: A JavaScript runtime and toolkit that shifted its core implementation to Rust.

  • Pacquet / pnpm: An experimental Rust-based install engine integrated into pnpm to speed up package fetch and link phases.

  • napi-rs: A framework for building pre-compiled Node.js native add-ons using Rust without needing node-gyp.

5. Cross-Ecosystem Tools

  • uv: An extremely fast Python package manager written in Rust, replacing pip.

  • Ruff: A high-speed Python linter and code formatter written in Rust, replacing Flake8 and Black.