Skip to content

Rewrite Bun in Rust#30412

Merged
Jarred-Sumner merged 6755 commits into
mainfrom
claude/phase-a-port
May 14, 2026
Lines changed: 1009257 additions & 4024 deletions
Merged

Rewrite Bun in Rust#30412
Jarred-Sumner merged 6755 commits into
mainfrom
claude/phase-a-port

Conversation

@Jarred-Sumner
Copy link
Copy Markdown
Collaborator

@Jarred-Sumner Jarred-Sumner commented May 8, 2026

Blog post with details coming soon.

It passes Bun's pre-existing test suite on all platforms (and fixes several memory leaks and flaky tests), the binary size shrinks by 3 MB - 8 MB, the benchmarks are between neutral and faster - and most importantly, we now have compiler-assisted tools for catching & preventing memory bugs, which have costed the team an enormous amount of development & debugging time over the years.

The codebase is otherwise largely the same. The same architecture, the same data structures. Bun still uses few 3rd party libraries. No async rust.

To try this, run:

bun upgrade --canary

Please do file issues if you run into any. If this thread gets crazy I will lock it.

Note:

  • Still some optimization work to do before this lands in non-canary version.
  • Still some cleanup work to do (which will come in a series of follow-up PRs)

@Jarred-Sumner Jarred-Sumner requested a review from alii as a code owner May 8, 2026 22:14
@kkMihai
Copy link
Copy Markdown

kkMihai commented May 15, 2026

this is history... (in a good way)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

None yet