商业产业 Hacker News Claude 2026-07-19T10:03 正文 ok 187 words

Claude Code 现已使用 Rust 编写的 Bun

英文标题:🔶 Claude Code uses Bun written in Rust now

Jarred Sumner 透露 Claude Code v2.1.181 起采用 Rust 移植版 Bun,启动速度提升 10%。作者通过命令行验证发现二进制文件内置了未发布的 Bun v1.4.0 及 563 个 Rust 源文件名,表明该 Rust 版本已在数百万设备上稳定运行。对开发者而言,这意味着 Bun 的 Rust 重写已投入生产,性能可靠。
打开原文相关 3 · 机会 0

中文

2026年7月19日

在《用 Rust 重写 Bun》一文中,Jarred Sumner 提出了以下说法:

Claude Code v2.1.181(6月17日发布)及后续版本使用了 Rust 移植版 Bun。在 Linux 上启动速度提升了 10%,但除此之外几乎没人注意到。平淡无奇就是好。

我决定探究一番我自己的 Claude Code 安装,看看是否能找到它使用 Rust 编写的 Bun 的证据。

我发现下面这两条命令很有说服力:

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

对我来说,它的输出是 Bun v1.4.0 (macOS arm64)。GitHub 上的 Bun 最新正式发布版目前是 5月12日发布的 v1.3.14,所以 Claude 中这个 v1.4.0 版本号支持了他们随附一个尚未发布的 Bun 版本的预览。

(更新:该 Rust 版本已作为 Bun canary 发布——运行 bun upgrade --canary 将会安装此版本。)

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

这条命令会输出一个包含 563 个文件名的列表,开头部分如下:

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

看来 Rust 版本的 Bun 确实已经在数百万台不同设备的生产环境中运行。正如 Jarred 所说,“平淡无奇就是好”。

English / 原文

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.

(Update : The Rust version has been released as Bun canary - running bun upgrade --canary will install this release.)

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".