Claude Code 现在使用由 Rust 编写的 Bun。
Claude Code uses Bun written in Rust now

原始链接: https://simonwillison.net/2026/Jul/19/claude-code-in-bun-in-rust/

Bun 的创建者 Jarred Sumner 最近确认,Anthropic 的 Claude Code(v2.1.181 及更高版本)现已运行在基于 Rust 移植的 Bun 上。虽然这一转变使 Linux 上的启动速度提升了 10%,但对于用户而言基本无法察觉——这恰好印证了稳定软件更新中“无聊即是好”的理念。 对本地 Claude Code 安装包的技术调查证实了这一变化。通过对二进制文件进行字符串分析,作者发现了“Bun v1.4.0”版本标签,该版本比 GitHub 上的公开发布版本更新,表明 Anthropic 正在使用内部预览版。此外,二进制文件中数百个 `.rs` 文件路径的存在,提供了 Rust 移植版已在生产环境中大规模成功部署的确凿证据。总的来说,这一转变凸显了 Bun 项目在集成到主流开发者工具过程中的稳步成功。

Hacker News 最近的一场讨论凸显了 Bun 运行时在被 Anthropic 收购以及从 Zig 大规模迁移至 Rust 后,社区内部持续存在的争议。 尽管一些用户认为编程语言的选择与 Bun 的性能无关,但批评者指出了几个更深层次的问题。许多不满集中在透明度缺失和治理能力的下降上。用户对一些“静默”变更感到不安,例如 Claude Code 中使用了一个尚未向公众发布的 Bun 版本(v1.4.0)。 除了技术层面的辩论,许多贡献者还对此次转型的方式感到疏离,并指出沟通缺乏专业性,以及开发模式正转向“Anthropic 优先”。对许多人而言,放弃最初帮助构建 Bun 社区的 Zig 语言,标志着该项目正在背离其开源根基。归根结底,这场辩论反映了人们对项目控制权的普遍焦虑;在他们眼中,这次技术重写与其说是功能上的改进,不如说是 Bun 在管理、治理和分发方式上的一个转折点。
相关文章

原文

19th July 2026

In Rewriting Bun in Rust Jarred Sumner made the following claim:

Claude Code v2.1.181 (released June 17th) and later use the Rust port of Bun. Startup got 10% faster on Linux but otherwise, barely anyone noticed. Boring is good.

I decided to have a poke at my own Claude Code installation to see if I could find evidence that it was using Bun written in Rust.

I found these two commands convincing:

strings ~/.local/bin/claude | grep -m1 'Bun v1'

For me this outputs Bun v1.4.0 (macOS arm64). The most recent release of Bun on GitHub is currently v1.3.14 from May 12th, so that v1.4.0 version number in Claude supports them shipping a preview of a not-yet-released Bun version.

strings ~/.local/bin/claude | grep -Eo 'src/[[:alnum:]_./-]+\.rs'

This outputs a list of 563 filenames, starting with these:

src/runtime/bake/dev_server/mod.rs
src/runtime/bake/production.rs
src/bundler/bundle_v2.rs

It looks like Bun in Rust is indeed being run in production across millions of different devices. Like Jarred said, "Boring is good".

联系我们 contact @ memedata.com