如何验证 Claude Code 是否已用上 Rust 版 Bun
Original title: Claude Code uses Bun written in Rust now
The title and summary in the selected language are awaiting translation.
Simon Willison 用两条命令检查本机 Claude Code 是否已内置 Rust 版 Bun:strings ~/.local/bin/claude | grep -m1 'Bun v1' 输出 Bun v1.4.0(macOS arm64),另一条 grep 正则列出 563 个 .rs 源文件名。
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".
Update: Here's a neat trick from Ajan Raj:
cat > /tmp/bun-version.ts <<'EOF'
console.log("embedded bun:", Bun.version);
process.exit(0);
EOF
BUN_OPTIONS="--preload=/tmp/bun-version.ts" claude --version
This outputs 1.4.0 for me.
Here's the commit from May 17th that updated the version in package.json to 1.4.0. That version hasn't been changed since then, but also hasn't yet made it into a tagged release outside of canary.
Source: Hacker News · Claude Code 高分 · simonwillison.net