TL;DR
The Bun project is in the process of rewriting its core components in Rust, aiming to improve performance and stability. The rewrite is actively progressing, with ongoing testing and development. For more details, see our article on rewriting Bun in Rust. Exact timelines and full scope are still unclear.
The Bun project is currently in the process of rewriting its core runtime in Rust, according to recent statements from the development team. This move aims to enhance performance, security, and stability, but the full scope and timeline of the rewrite are still under development.
Developers involved in the Bun project confirmed that the rewrite in Rust is actively underway, with several core components already ported and undergoing testing. The team has shared that this transition is motivated by Rust’s safety features and performance advantages over JavaScript and C++. However, they emphasized that the project remains in the early to mid-stages of development, and a definitive release date has not been announced.
Sources close to the project indicate that the rewrite aims to replace existing C++ and JavaScript codebases, with incremental updates being integrated into the current runtime. The team has also mentioned that they are focusing on ensuring compatibility with existing features during this transition.
While the project has shared some technical insights, detailed timelines and the full scope of the rewrite are still not publicly confirmed, and the team has acknowledged ongoing challenges in porting complex features.
Implications for Bun’s Performance and Ecosystem
This ongoing rewrite in Rust could significantly impact Bun’s performance, security, and stability. Rust’s memory safety and concurrency features are expected to reduce bugs and improve efficiency, potentially making Bun more competitive against other JavaScript runtimes like Node.js and Deno. For developers and users relying on Bun, these improvements could translate into faster execution and more reliable applications.
However, the transition also introduces uncertainties, including potential delays and compatibility issues. The success of this rewrite could influence Bun’s adoption and its position within the JavaScript ecosystem, especially as performance becomes a critical factor for developers.

The Rust Programming Language, 3rd Edition
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Background and Progress of Bun’s Rewrite Initiative
Bun, launched in 2022 by a team led by Jarred Sumner, quickly gained attention for its emphasis on speed and developer experience. Originally built primarily in JavaScript with some core components in C++, the project announced plans to rewrite its core in Rust in early 2023.
Since then, the team has shared periodic updates, indicating that the rewrite is progressing but still in development. They have highlighted the technical benefits of Rust and the challenges of porting complex features, including compatibility with existing APIs and performance benchmarks. No official release timeline has been provided, but recent statements suggest the rewrite is entering a critical phase of testing and stabilization.
“The Rust rewrite is a significant step forward for Bun, aiming to improve our runtime’s speed and reliability.”
— Jarred Sumner, Bun lead developer

Bun Runtime Essentials: The Fastest JavaScript Server Environment: Bun Runtime Essentials: The Fastest JavaScript Server Environment
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Unresolved Questions About Timeline and Compatibility
It is not yet clear when the full rewrite will be completed or officially released. The team has not provided a specific timeline, citing ongoing technical challenges and testing phases. Additionally, the extent of compatibility with existing Bun features during the transition remains uncertain, raising questions about potential migration issues for users.
performance testing tools for developers
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Next Steps in Bun’s Rust Rewrite Development
The Bun team is expected to continue testing and stabilizing the Rust-based core over the coming months. They may release alpha or beta versions to gather community feedback and address compatibility issues. An official timeline for a stable release has not been announced, but updates are anticipated as the project progresses through its development milestones.
As an affiliate, we earn on qualifying purchases.
Key Questions
Why is Bun rewriting its core in Rust?
The team aims to leverage Rust’s safety features and performance advantages to improve Bun’s speed, security, and stability.
When might a stable version of the Rust rewrite be available?
No official timeline has been provided. The team indicated ongoing testing and development, with no specific release date announced.
Will the rewrite affect existing Bun users?
Potentially, during transition phases, there could be compatibility issues. The team is working to ensure a smooth migration but details are still emerging.
What are the main technical challenges?
Porting complex features, ensuring API compatibility, and achieving performance benchmarks are among the key challenges currently faced.
Source: hn