AIToday

Claude Code now runs Bun written in Rust

Simon Willison's Weblog10h ago

Key takeaway

Claude Code v2.1.181 and later now run Bun (a JavaScript runtime) written in Rust instead of the original implementation. The shift delivered a 10% startup speed boost on Linux and is already running across millions of devices, though most users have not noticed the change because the transition was seamless.

Summaries like this, in your inbox every morning.

Sign up free →

3 Key Points

  • What happened

    Claude Code v2.1.181 (released June 17th) and later versions now use a Rust port of Bun, the JavaScript runtime. The shift was confirmed by examining the Claude binary, which contains Bun v1.4.0—a preview version not yet publicly released on GitHub (the latest public release is v1.3.14 from May 12th).

  • Why it matters

    The Rust rewrite delivered a 10% startup speed improvement on Linux. More broadly, Bun written in Rust is now running in production across millions of devices through Claude Code, validating the port's stability and performance in real-world use at scale.

  • What to watch

    The Rust implementation of Bun contains 563 source files (confirmed by examining the Claude binary), suggesting a substantial codebase transition. Adoption has been quiet—most users have not noticed the change—which the author frames as a sign of successful, stable infrastructure work.

In Depth

In mid-July 2026, it became clear that Claude Code had quietly adopted a major architectural change: Bun, the JavaScript runtime used by the tool, had been rewritten in Rust. Jarred Sumner, the creator of Bun, announced this milestone in a post titled "Rewriting Bun in Rust," noting that Claude Code v2.1.181 (released June 17th) and all subsequent versions now run the Rust port. The change yielded a 10% startup speed improvement on Linux, though Sumner noted that "barely anyone noticed"—a testament to how seamlessly the transition occurred.

To verify the claim, an independent examination of the Claude Code binary revealed telling evidence. Searching the binary for version strings turned up "Bun v1.4.0 (macOS arm64)," a preview version that has not yet been publicly released on GitHub; the most recent official Bun release available at the time was v1.3.14 from May 12th. A second search for Rust source file references in the binary returned a list of 563 filenames, confirming that Rust code—including modules for the development server, production build system, and bundle system (src/runtime/bake/dev_server/mod.rs, src/runtime/bake/production.rs, src/bundler/bundle_v2.rs, and hundreds more)—was indeed compiled into the production binary.

The implications are significant: Bun written in Rust is now running in production across millions of different devices through Claude Code installations worldwide. The Rust rewrite represents a substantial engineering effort, involving hundreds of source files and a complete reimplementation of Bun's core functionality. The fact that the deployment was nearly invisible to users—"Boring is good," as Sumner put it—reflects successful infrastructure engineering: the change delivered measurable performance gains while maintaining compatibility and stability.

Context & Analysis

The migration of Bun to Rust represents a significant infrastructure upgrade within Claude Code, yet it unfolded almost invisibly to end users. By the time v2.1.181 shipped on June 17th, the Rust port was stable enough to ship in production across millions of devices simultaneously. The fact that the binary contains 563 Rust source files underscores the scale of the rewrite; this was not a minor refactoring but a substantial reimplementation of core runtime functionality. The 10% startup speed improvement on Linux provides a tangible performance win, and the deployment of a preview Bun version (v1.4.0) before its public release suggests confidence from the development team in the stability and readiness of the Rust implementation. The author's observation that "boring is good" reflects a shift in how infrastructure success is measured—not by visibility or hype, but by silent, reliable performance.

FAQ

When did Claude Code switch to Bun written in Rust?
Claude Code v2.1.181, released June 17th, was the first version to use the Rust port of Bun.
What performance improvement did the Rust rewrite deliver?
Startup got 10% faster on Linux; otherwise, the change was barely noticed by users.
Is the Bun version in Claude Code a public release?
No. Claude Code contains Bun v1.4.0, which is a preview version not yet officially released on GitHub; the most recent public release is v1.3.14 from May 12th.

Get the latest Large Language Models news every morning

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytime

Discussion

No comments yet. Be the first to share your thoughts!

Log in to join the discussion

Related Articles

Stay ahead with AI news

Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.

Get Started Free

Free · takes 30 seconds · unsubscribe anytime

1 minute a day. The AI essentials.

200+ sources · Email / LINE / Slack

Get it free →