All posts
rusttooling

Why Every JS Tool I Use Is Being Rewritten in Rust

Bundler, linter, formatter, CSS engine, even the Python tools next door. A map of where my stack went native over the last year, why it happened, and the one big exception.

Muhamad Choirul Adam 3 min readPhoto: Unsplash

I went through the package.json files of the projects I touched last year and counted the tools that are now written in something other than JavaScript. It was most of them.

That isn't a fashion. JavaScript tooling hit a wall that faster JavaScript couldn't get past, and the fix turned out to be leaving JavaScript for the hot path.

Where my stack went native

Rendering diagram…
  • Bundling. Next.js 16 made Turbopack the default for both next dev and next build. Vite 8, in beta since December, replaces its esbuild plus Rollup pair with a single Rust bundler, Rolldown.
  • Linting and formatting. Biome replaced ESLint and Prettier for me last year. The Oxc project now ships Oxlint and an alpha of Oxfmt, a Prettier-compatible formatter.
  • CSS. Tailwind v4's engine has a Rust core, and Lightning CSS handles the parsing and vendor prefixes.
  • Next door. The few Python scripts I keep now run through uv and Ruff, both Rust, both from Astral.

Why Rust, and why now

Three reasons kept coming up when I read the announcements:

  1. Parallelism. A JavaScript tool runs on one thread unless it goes out of its way. A Rust bundler can parse and transform hundreds of files across every core with no fight.
  2. Memory. Parsing a big codebase allocates millions of small objects. A garbage collector is slow at exactly that. Rust tools allocate in arenas and throw the whole thing away at the end.
  3. Shared foundations. Oxc's parser is reused by Rolldown, Oxlint, and Oxfmt. One fast parser, many tools. JavaScript tooling used to reparse your code with a different parser at every step.

The speed difference is not 20%. Linting that took half a minute takes a second. That changes behavior: I run checks on save now, and agents run them after every edit without anyone noticing the wait.

The exception: TypeScript chose Go

The biggest native port isn't Rust at all. The TypeScript team is porting the compiler to Go, and the preview (@typescript/native-preview, with a tsgo binary) already type-checks our dashboard several times faster than tsc.

Their reasoning is worth reading. They weren't rewriting from scratch, they were porting line by line, and the existing code leans on a garbage collector and on data structures with cycles. Go keeps that shape. Rust would have forced a redesign. The lesson I took: the language matters less than doing a faithful port instead of a rewrite.

What it means for someone who just uses the tools

Mostly nothing, which is the point. The commands stay the same: next build, vite build, biome check. The config files get shorter.

Two things do change:

  • Plugins. A JavaScript plugin for a Rust tool means crossing a boundary on every file, which eats the speedup. Rolldown and Turbopack support JavaScript plugins, but the fast path is the built-in transforms. Check that your plugins have a native equivalent before you migrate.
  • Debugging. When a Rust tool misbehaves you can't drop a console.log into node_modules. Read the issue tracker first, and keep the escape hatch: next build --webpack still works.

This year I'm moving the rest over one tool at a time, and writing up what breaks.