Skip to content

Update runtime language from Zig to Rust in README#30923

Open
KhalidAlansary wants to merge 1 commit into
oven-sh:mainfrom
KhalidAlansary:patch-2
Open

Update runtime language from Zig to Rust in README#30923
KhalidAlansary wants to merge 1 commit into
oven-sh:mainfrom
KhalidAlansary:patch-2

Conversation

@KhalidAlansary
Copy link
Copy Markdown

What does this PR do?

Update runtime language from Zig to Rust in README

Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 17, 2026

Review Change Stack

Walkthrough

README.md updated to clarify that Bun's core runtime is written in Zig rather than Rust in the "What is Bun?" section description.

Changes

Runtime Language Documentation

Layer / File(s) Summary
Runtime language description
README.md
The "What is Bun?" section description updated to state the core runtime is written in Zig instead of Rust.
🚥 Pre-merge checks | ✅ 2 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title states 'Update runtime language from Zig to Rust' but the actual change updates it from Rust to Zig, making the title contradictory to the actual changeset. Correct the title to 'Update runtime language from Rust to Zig in README' to accurately reflect the direction of the change.
Description check ⚠️ Warning The description provides only a partial answer to the 'What does this PR do?' section and completely omits the required 'How did you verify your code works?' section. Complete the description by adding the 'How did you verify your code works?' section with verification details for the documentation update.
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Line 29: The README contains an incorrect statement saying "It's written in
Rust" about the Bun runtime (the sentence starting "At its core is the _Bun
runtime_, ... It's written in Rust"); update that sentence to correctly state
"It's written in Zig" so the implementation language matches the project and
other docs.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 697f45d6-5a03-41b4-b4e1-4563927cc04b

📥 Commits

Reviewing files that changed from the base of the PR and between 172afa5 and 9e6369a.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md
Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called `bun`.

At its core is the _Bun runtime_, a fast JavaScript runtime designed as **a drop-in replacement for Node.js**. It's written in Zig and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage.
At its core is the _Bun runtime_, a fast JavaScript runtime designed as **a drop-in replacement for Node.js**. It's written in Rust and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check for Zig source files and build configuration

echo "=== Checking for Zig source files ==="
fd -e zig -t f | head -20

echo -e "\n=== Checking for Zig build files ==="
fd 'build.zig' -t f

echo -e "\n=== Checking for Rust source files ==="
fd -e rs -t f | head -20

echo -e "\n=== Checking for Rust build files ==="
fd 'Cargo.toml' -t f

echo -e "\n=== Checking src directory structure ==="
fd -t d '^src$' --max-depth 2 -x sh -c 'echo "Directory: {}"; ls -la {} | head -10'

echo -e "\n=== Checking build configuration mentions ==="
rg -i "language.*zig|written.*zig" --type md -C 2

Repository: oven-sh/bun

Length of output: 7167


🌐 Web query:

What programming language is Bun written in?

💡 Result:

Bun is primarily written in Zig, a modern, high-performance systems programming language [1][2][3]. While Zig serves as the core language for the runtime and transpiler [1], the project also incorporates other languages and components to support its functionality [4]: - Zig: Used for the main runtime and transpiler implementation [1][2]. - C++ and C: Used for bindings, particularly for the JavaScriptCore engine (developed by Apple) and various low-level libraries like WebSocket implementations [5][4][6]. - JavaScript and TypeScript: Used for internal modules and built-in functionality within the runtime [4][6]. By utilizing Zig, Bun achieves low-level memory control and performance optimizations [3], while leveraging the established JavaScriptCore engine for executing JavaScript code [1][2].

Citations:


Revert this change: Bun is written in Zig, not Rust.

The claim that Bun is "written in Rust" is factually incorrect. Official Bun documentation and the codebase confirm that the core runtime and transpiler are primarily implemented in Zig. This statement appears elsewhere correctly in the repository (e.g., packages/bun-vscode/README.md states "It's written in Zig"). Reverting this line to accurately reflect Zig as the implementation language is required.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 29, The README contains an incorrect statement saying
"It's written in Rust" about the Bun runtime (the sentence starting "At its core
is the _Bun runtime_, ... It's written in Rust"); update that sentence to
correctly state "It's written in Zig" so the implementation language matches the
project and other docs.

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.

1 participant