---
title: "Rewrite Bun in Rust by Jarred-Sumner · Pull Request #30412 · oven-sh/bun"
url: https://daily.dev/posts/rewrite-bun-in-rust-by-jarred-sumner-pull-request-30412-oven-sh-bun-97h2buasi
source_url: https://github.com/oven-sh/bun/pull/30412
type: article
source: "Hacker News"
published: 2026-05-14T10:39:27.808Z
updated: 2026-05-15T13:40:14.716Z
tags: ["javascript", "rust", "bun"]
reading_time: 1
upvotes: 8
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Rewrite Bun in Rust by Jarred-Sumner · Pull Request #30412 · oven-sh/bun

**[Hacker News](https://daily.dev/sources/hn)** · 1 min read · 8 upvotes · 1 comments

## Summary

Bun's creator Jarred Sumner has merged a pull request rewriting Bun in Rust. The rewrite passes Bun's existing test suite on all platforms, fixes several memory leaks and flaky tests, reduces binary size by 3–8 MB, and delivers neutral-to-faster benchmark results. The architecture and data structures remain largely the same, with no async Rust used. The primary motivation is gaining compiler-assisted memory safety, which has historically cost the team significant development and debugging time.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/oven-sh/bun/pull/30412>

## Community discussion

Top comments from developers on daily.dev.

**@petecapecod** · 0 upvotes

> he did it! Jarred pulled it off, zig to rust for Bun. Guess we'll have to try it out 🤘🏼

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#rust](https://daily.dev/tags/rust), [#bun](https://daily.dev/tags/bun)

[View this post on daily.dev](https://daily.dev/posts/rewrite-bun-in-rust-by-jarred-sumner-pull-request-30412-oven-sh-bun-97h2buasi)
