Claude Code 已迁移至 Rust 版 Bun
推荐指数 72.0 NO. 016 · 2026.07.20
发布2026/07/19Score286Comments366
为什么值得看
Anthropic 的 Claude Code 从 v2.1.181 起静默切换到了用 Rust 重写的 Bun 运行时,启动速度提升 10%。这是 Rust 重写大型 JS 运行时首次在主流开发者工具中落地验证,性能收益虽 modest 但证明了大规模迁移的可行性。
编辑判断
Jarred Sumner 用 Rust 重写 Bun 的决定曾引发社区激烈争论,毕竟 Bun 本身就是用 Zig 写的,而 Zig 正是以"更好的 C"自居的系统语言。这次迁移的真正看点不是 10% 启动提升,而是 Anthropic 愿意把核心开发者工具押注在一个尚未发布的 canary 版本上——说明 Rust 在大型基础设施中的工具链成熟度已经跨过临界点。
对 JS 运行时赛道来说,这意味着 Deno(Rust 原生)和 Node.js(逐步引入 Rust 组件)的竞争逻辑正在变化:Bun 原本靠 Zig 的极致性能差异化,现在主动放弃这条路线,暗示纯性能比拼让位于生态安全和开发者信心。如果你在维护基于 Bun 的 CI/CD 或边缘部署,建议锁定版本并关注 canary 的稳定性报告,Rust 版尚未经过大规模生产验证。
社区反馈
意见分歧 215 条评论
核心争论:Bun转向Rust是技术演进还是开源治理变质的标志
相关内容
9天Claude Code重写100万行代码、6755次提交,Bun完成史上最大AI重构 Anthropic收购Bun后,Claude Code用9天完成100万行Rust代码迁移,99.8%测试通过率引发开发者对安全性的质疑。 11天、64个Claude、112万元:用Rust重写Bun Claude Code v2.1.181已切换至Rust版Bun,Linux启动速度提升10%,用户几乎无感知变化。 AI重写Bun为Rust全过程揭秘:101万行代码、11天、64个Claude并行开工 Claude Code自v2.1.181起采用Rust版Bun,Linux冷启动从517ms降至464ms,但存在19个已知回归问题。 6天重写96万行代码!Bun从Zig到Rust迁移,AI重写软件趋势已至? Bun创始人Jarred Sumner宣布v1.3.14为Zig最后一个版本,正式终结Zig版Bun,全面转向Rust实现。
> 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. And so, the FOSS project "Bun" silently dies in darkness and is now
It's largely just what jarred is willing to accept this week afaik or not, and they did put the bun 1.4.0 version bump in the changelogs for claude code a while ago, over a month almost. Though most will be forgiven to not reading it since well it's all AI anyways. I don't know how I feel about all
> they did put the bun 1.4.0 version bump in the changelogs for claude code a while ago, over a month almost. Where? Is see no CHANGELOG in the root. I do see LATEST, last modified 2 months ago, and it says 1.3.14