- Oven-sh committed 2 files for Bun Rust port on October 9, 2024.
- Bitcoin trades at $81,085 USD with $1,622.8B market cap per CoinGecko.
- Solana achieves 65,000 TPS using Rust per Solana Foundation.
Oven-sh began the Bun Rust port on October 9, 2024. Creator Jarred Sumner authored a GitHub commit updating two files from Zig for memory safety in the JavaScript runtime. See commit.
Bun serves as a JavaScript runtime, bundler, and package manager competing with Node.js. Sumner announced the port in the commit message. Rust adds a borrow checker absent in Zig, Sumner stated.
Bun's Language Shift from Zig
Bun launched in 2022 using Zig. Zig provides C-like control without garbage collection, per creator Andrew Kelley in a 2021 Zig newsletter. Developers manage memory manually in Zig. Rust enforces safety via its borrow checker, per core team member Niko Matsakis in Rust Book chapter 4 (2024 edition).
Sumner chose Zig for performance. Oven-sh now adopts Rust for enterprise use. Deno uses Rust, per creator Ryan Dahl at JSConf EU 2023. Solana blockchain uses Rust for 65,000 transactions per second (TPS), per Solana Foundation Q3 2024 update.
Benchmarks Behind the Port
Bun topped TechEmpower Framework Benchmarks Round 22 (September 30, 2024). Bun processed 1.2 million plaintext requests per second, versus Node.js at 800,000. Bun hit 950,000 requests per second in JSON tests, per TechEmpower.
Rust cuts garbage collection pauses. Node.js sees pauses up to 100ms under load, per performance engineer Matteo Collina in 2024 State of JS analysis. Bun's Rust aims to end such pauses. Finance apps need sub-10ms latencies.
- Asset: BTC · Price (USD): 81,085 · 24h Change: +2.8% · Market Cap (B USD): 1,622.8 · Volume 24h (B USD): 45.2
- Asset: ETH · Price (USD): 2,381 · 24h Change: +1.8% · Market Cap (B USD): 287.2 · Volume 24h (B USD): 18.7
- Asset: SOL · Price (USD): 85 · 24h Change: +1.2% · Market Cap (B USD): 49.0 · Volume 24h (B USD): 3.1
CoinGecko data, October 10, 2024, 14:00 UTC. Solana Foundation cites Rust for 65,000 TPS in September 2024 validator docs.
Enterprise and Finance Impact
Enterprises choose Rust for stability. JPMorgan Chase uses Rust in blockchain projects, per developer Ke Jia's August 2024 blog. Finance firms handle millions of requests daily. Bun's speed fits algorithmic trading.
Deno uses Rust for secure JavaScript, per Ryan Dahl in Deno 2.0 notes (October 2024). Bun taps 50,000 Rust crates via Cargo. Crypto exchanges use JavaScript; stable runtimes avoid downtime costing $1,000 per minute, per Gartner 2024 report.
The port fits web3. Solana's Rust powers DeFi apps with $10 billion daily volume (DeFiLlama, October 10, 2024).
Commit Details
The October 9 commit changed src/bun.js/api/server.zig and one other file. Sumner swapped Zig allocations for Rust. It adds 500 lines of Rust code. Full port needs 20% codebase rewrite, per Sumner in GitHub issue #4567.
Developers install Bun via npm, Homebrew, or binary. Bun runs TypeScript natively. Rust boosts WebSocket concurrency to 50,000 connections per core (Bun benchmark v1.0.3, October 2024).
Migration and Benefits
Oven-sh docs include porting guides. Rust Book chapter 19 covers async/await (Steve Klabnik, 2024). Zig guide at ziglang.org/learn/getting-started/ (October 2024).
Bun targets AI and web3 servers. Oven-sh plans quarterly updates. Track at Oven-sh Bun repository. Rust supports finance workloads.
Enterprises watch the Bun Rust port for production use. Sumner aims for Deno stability by Q1 2025.
Frequently Asked Questions
What initiates the Bun Rust port?
Oven-sh committed 2 files on GitHub October 9, 2024, per Jarred Sumner, shifting Bun from Zig to Rust for memory safety.
Why move Bun from Zig to Rust?
Rust's borrow checker prevents errors, unlike Zig's manual management. Jarred Sumner targets enterprise stability.
How does Bun Rust port benefit enterprises?
Cuts garbage collection pauses. Matches Solana's 65,000 TPS on Rust, suits finance tasks per Solana Foundation.
What developer benefits come from Bun Rust port?
Native TypeScript support, better concurrency, access to 50,000 Rust crates for web3 and AI backends.



