# Bun's Rust

> **TL;DR.** "Bun's Rust" names the Rust codebase that replaced Bun's original Zig implementation — 1,009,257 lines generated by Anthropic's Claude Code agents in nine days and merged on May 14, 2026.

- **Category:** AI / Software Engineering / Developer Tools
- **Stage:** emergent
- **Age:** 29 days
- **Origin date:** 2026-05-05
- **First detected:** 2026-05-17
- **Canonical URL:** https://earlyterms.com/term/bun-s-rust
- **Sources:** 7 primary URLs

## Definition

"Bun's Rust" names the Rust codebase that replaced Bun's original Zig implementation — 1,009,257 lines generated by Anthropic's Claude Code agents in nine days and merged on May 14, 2026. It is distinct from the migration event: the term marks the resulting artifact and its ongoing safety audit, not the rewrite act itself.

On May 5, 2026, Bun creator Jarred Sumner posted a [Zig-to-Rust porting guide](https://github.com/oven-sh/bun/commit/46d3bc29f270fa881dd5730ef1549e88407701a5); nine days later [PR #30412](https://github.com/oven-sh/bun/pull/30412) landed in main, passing 99.8% of tests. Within 24 hours, a [GitHub issue](https://github.com/oven-sh/bun/issues/30719) filed May 15 showed the codebase "fails basic miri checks, allows for UB in safe rust" — demonstrating that test-pass rate does not equal memory safety.

## Analogy

A transplanted engine that runs on the test track but hasn't passed the emissions check.

## Why it's emerging now

Bun's Rust codebase — merged May 14, 2026 by Claude Code agents — became the first production JavaScript runtime rewritten entirely by AI. Within 24 hours, a miri audit revealed undefined behavior in code marked as "safe" Rust, opening a new chapter: not "can AI rewrite a codebase?" but "is AI-written Rust actually safe?"

## Related terms

- *alias:* rewrite-bun
- *alias:* bun-rust-rewrite
- *parent:* agentic-coding
- *related:* claude-code
- *related:* ai-slop
- *related:* vibe-coding
- *parent:* code-agent
- *related:* claude-agent-sdk
- *related:* Zig
- *related:* Rust

## Sources

1. [PR #30412: Rewrite Bun in Rust — Jarred Sumner](https://github.com/oven-sh/bun/pull/30412)
2. [Issue #30719: codebase fails basic miri checks, allows for UB in safe rust](https://github.com/oven-sh/bun/issues/30719)
3. [HN: Bun Rust rewrite miri failures (435p, 307c)](https://news.ycombinator.com/item?id=48150900)
4. [HN: Rewrite Bun in Rust has been merged (667p, 742c)](https://news.ycombinator.com/item?id=48132488)
5. [ByteIota: The 13,000 Unsafe Block Problem](https://byteiota.com/bun-rust-rewrite-merged-the-13000-unsafe-block-problem/)
6. [Lobsters: Bun's Rust rewrite has been merged (vibe porting coinage)](https://lobste.rs/s/lapqbz/bun_s_rust_rewrite_has_been_merged)
7. [The Register: Anthropic's Bun Rust rewrite merged at speed of AI](https://www.theregister.com/devops/2026/05/14/anthropics-bun-rust-rewrite-merged-at-speed-of-ai/5240381)

---
_Generated by EarlyTerms · https://earlyterms.com/term/bun-s-rust_
