导航菜单
切换导航
[ ](/)
[ 登录 ](/login?return_to=https%3A%2F%2Fgithub.com%2Foven-sh%2Fbun%2Fpull%2F30412)
外观设置
平台
- **AI 代码创作**
- [GitHub Copilot:借助 AI 编写更优质代码](https://github.com/features/copilot)
- [GitHub Spark:构建并部署智能应用](https://github.com/features/spark)
- [GitHub Models:管理并比较提示词](https://github.com/features/models)
- [MCP Registry(新):集成外部工具](https://github.com/mcp)
- **开发者工作流**
- [Actions:自动化任何工作流](https://github.com/features/actions)
- [Codespaces:即时开发环境](https://github.com/features/codespaces)
- [Issues:规划并跟踪工作](https://github.com/features/issues)
- [Code Review:管理代码变更](https://github.com/features/code-review)
- **应用程序安全**
- [GitHub Advanced Security:发现并修复漏洞](https://github.com/security/advanced-security)
- [Code security:在构建过程中保障代码安全](https://github.com/security/advanced-security/code-security)
- [Secret protection:防患于未然,防止信息泄露](https://github.com/security/advanced-security/secret-protection)
- **探索**
- [为何选择 GitHub](https://github.com/why-github)
- [文档](https://docs.github.com)
- [博客](https://github.blog)
- [更新日志](https://github.blog/changelog)
- [市场](https://github.com/marketplace)
[查看所有功能](https://github.com/features)
解决方案
- **按公司规模划分**
- [企业版](https://github.com/enterprise)
- [中小型团队](https://github.com/team)
- [初创公司](https://github.com/enterprise/startups)
- [非营利组织](https://github.com/solutions/industry/nonprofits)
- **按用例划分**
- [应用现代化](https://github.com/solutions/use-case/app-modernization)
- [DevSecOps](https://github.com/solutions/use-case/devsecops)
- [DevOps](https://github.com/solutions/use-case/devops)
- [CI/CD](https://github.com/solutions/use-case/ci-cd)
- [查看所有用例](https://github.com/solutions/use-case)
- **按行业划分**
- [医疗保健](https://github.com/solutions/industry/healthcare)
- [金融服务](https://github.com/solutions/industry/financial-services)
- [制造业](https://github.com/solutions/industry/manufacturing)
- [政府部门](https://github.com/solutions/industry/government)
- [查看所有行业](https://github.com/solutions/industry)
[查看所有解决方案](https://github.com/solutions)
资源
- **按主题探索**
- [AI](https://github.com/resources/articles?topic=ai)
- [软件开发](https://github.com/resources/articles?topic=software-development)
- [DevOps](https://github.com/resources/articles?topic=devops)
- [安全](https://github.com/resources/articles?topic=security)
- [查看所有主题](https://github.com/resources/articles)
- **按类型探索**
- [客户案例](https://github.com/customer-stories)
- [活动与网络研讨会](https://github.com/resources/events)
- [电子书与报告](https://github.com/resources/whitepapers)
- [商业洞察](https://github.com/solutions/executive-insights)
- [GitHub Skills](https://skills.github.com)
- **支持与服务**
- [文档](https://docs.github.com)
- [客户支持](https://support.github.com)
- [社区论坛](https://github.com/orgs/community/discussions)
- [信任中心](https://github.com/trust-center)
- [合作伙伴](https://github.com/partners)
[查看所有资源](https://github.com/resources)
开源
- **社区**
- [GitHub Sponsors:资助开源开发者](https://github.com/sponsors)
- **项目**
- [Security Lab](https://securitylab.github.com)
- [Maintainer Community](https://maintainers.github.com)
- [Accelerator](https://github.com/accelerator)
- [GitHub Stars](https://stars.github.com)
- [Archive Program](https://archiveprogram.github.com)
- **仓库**
- [主题](https://github.com/topics)
- [热门趋势](https://github.com/trending)
- [合集](https://github.com/collections)
企业版
- **企业解决方案**
- [企业平台:由 AI 驱动的开发者平台](https://github.com/enterprise)
- **可用附加组件**
- [GitHub Advanced Security:企业级安全功能](https://github.com/security/advanced-security)
- [Copilot for Business:企业级 AI 功能](https://github.com/features/copilot/copilot-business)
- [Premium Support:企业级 24/7 支持](https://github.com/premium-support)
[定价](https://github.com/pricing)
搜索或跳转至...
搜索代码、仓库、用户、问题、拉取请求...
搜索
清除
[搜索语法提示](https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax)
提供反馈
我们会认真阅读每一条反馈,并高度重视您的意见。
包含我的电子邮件地址,以便我们与您联系
取消 提交反馈
保存的搜索
使用保存的搜索可以更快速地筛选结果
名称
查询
要查看所有可用的限定符,请参阅我们的[文档](https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax)。
取消 创建保存的搜索
[ 登录 ](/login?return_to=https%3A%2F%2Fgithub.com%2Foven-sh%2Fbun%2Fpull%2F30412)
[ 注册 ](/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=oven-sh%2Fbun)
外观设置
重置焦点
您已在另一个标签页或窗口中登录。[重新加载]()以刷新您的会话。
您已在另一个标签页或窗口中注销。[重新加载]()以刷新您的会话。
您已在另一个标签页或窗口中切换账户。[重新加载]()以刷新您的会话。 关闭提醒
{{ message }}
[ oven-sh ](/oven-sh) / **[bun](/oven-sh/bun) ** 公开
- [ 通知 ](/login?return_to=%2Foven-sh%2Fbun) 您必须登录才能更改通知设置
- [ 派生 4.5k ](/login?return_to=%2Foven-sh%2Fbun)
- [ 加星 90.3k ](/login?return_to=%2Foven-sh%2Fbun)
- [ 代码 ](/oven-sh/bun)
- [ 问题 5k+ ](/oven-sh/bun/issues)
- [ 拉取请求 1.8k ](/oven-sh/bun/pulls)
- [ 讨论 ](/oven-sh/bun/discussions)
- [ 操作 ](/oven-sh/bun/actions)
- [ 安全与质量 0 ](/oven-sh/bun/security)
- [ 洞察 ](/oven-sh/bun/pulse)
其他导航选项
- [ 代码 ](/oven-sh/bun)
- [ 问题 ](/oven-sh/bun/issues)
- [ 拉取请求 ](/oven-sh/bun/pulls)
- [ 讨论 ](/oven-sh/bun/discussions)
- [ 操作 ](/oven-sh/bun/actions)
- [ 安全与质量 ](/oven-sh/bun/security)
- [ 洞察 ](/oven-sh/bun/pulse)
用 Rust 重写 Bun #30412
已合并
[Jarred-Sumner](/Jarred-Sumner) 将 6755 次提交合并到
[main](/oven-sh/bun/tree/main) oven-sh/bun:main ,来自
[claude/phase-a-port](/oven-sh/bun/tree/claude/phase-a-port) oven-sh/bun:claude/phase-a-port 复制分支名称到剪贴板
2026 年 5 月 14 日
[对话](/oven-sh/bun/pull/30412) [提交 6755 (6755)](/oven-sh/bun/pull/30412/commits) [检查](/oven-sh/bun/pull/30412/checks) [文件更改](/oven-sh/bun/pull/30412/files)
已合并
用 Rust 重写 Bun #30412
[Jarred-Sumner](/Jarred-Sumner) 将 6755 次提交合并到
[main](/oven-sh/bun/tree/main) oven-sh/bun:main ,来自
[claude/phase-a-port](/oven-sh/bun/tree/claude/phase-a-port) oven-sh/bun:claude/phase-a-port 复制分支名称到剪贴板
对话
 [Jarred-Sumner](/Jarred-Sumner)
复制链接
复制 Markdown
协作者
 **[Jarred-Sumner](/Jarred-Sumner) ** 于 2026 年 5 月 8 日评论 • 已编辑
加载中
哎呀!
加载时出现错误。[请重新加载此页面]()。
详细的博客文章即将发布。
它通过了 Bun 在所有平台上的现有测试套件(并修复了几个内存泄漏和不稳定的测试),二进制文件大小缩小了 3 MB - 8 MB,基准测试结果持平或更快。最重要的是,我们现在有了编译器辅助工具来捕获和防止内存错误,这些错误多年来让团队花费了大量的开发和调试时间。
代码库的其他方面基本保持不变,架构相同,数据结构也相同。Bun 仍然使用很少的第三方库,没有使用异步 Rust。
要尝试此版本,请运行:
```
bun upgrade --canary
```
如果遇到任何问题,请提交问题。如果这个讨论变得混乱,我将锁定它。
注意:
- 在这个版本进入非金丝雀版本之前,仍有一些优化工作要做。
- 仍有一些清理工作要做(这将在一系列后续的拉取请求中完成)
抱歉,出现了一些问题。
哎呀!
加载时出现错误。[请重新加载此页面]()。
👍 977 人(Arron-Stothart、theoparis、nitish-singh07、Vanilagy、grok-rs、shashank-100、omerbenamram、jmjoy、Gawc1uuu、justjavac 等 967 人)点赞
👎 794 人(KaruroChori、rbozan、Partur-dev、playerx、TheOnlyArtz、criloz、vvzen、0xHexE、pannapudi、debbie-drg 等 784 人)反对
😄 324 人(0xD503、Natural-selection1、saolof、syyyr、uandere、savonarola、farebyting、samoylenkodmitry、dashed、nicklauri 等 314 人)觉得有趣
🎉 212 人(Gowee、SimonLeclere、richardhenry、teamgroove、miniBill、zachkamran、seanparkross、muojp、thesofakillers、AdiY00 等 202 人)庆祝
😕 144 人(blinry、playerx、mikelui、cxOrz、CelDaemon、Sayrix、umuoy1、pannapudi、Mirsario、notxorand 等 134 人)表示困惑
❤️ 144 人(He-Pin、PaulGrandperrin、joshlk、TomasHubelbauer、richardhenry、bmartynov、cameronapak、lu-zero、muojp、MAiKo26 等 134 人)表达喜爱
🚀 247 人(Dsaquel、theoparis、shimbaco、samhumeau、timfennis、LynchzDEV、tim-hm、corporatepiyush、jmjoy、yasink21 等 237 人)表示期待
👀 324 人(Chaoses-Ib、dtinth、tigerza117、dominic-r、UnownPlain、PatrickMatthiesen、onkoe、theoparis、phgoh、rdnsan 等 314 人)关注
所有反应:
- 👍 977 次反应
- 👎 794 次反应
- 😄 324 次反应
- 🎉 212 次反应
- 😕 144 次反应
- ❤️ 144 次反应
- 🚀 247 次反应
- 👀 324 次反应
加载中
哎呀!
加载时出现错误。[请重新加载此页面]()。
[免费注册](/join?source=comment-repo) **以加入 GitHub 上的此对话**。已有账户?[登录以评论](/login?return_to=https%3A%2F%2Fgithub.com%2Foven-sh%2Fbun%2Fpull%2F30412)
评审人员
 [ coderabbitai[bot] ](/apps/coderabbitai) [ ](/oven-sh/bun/pull/30412/files/1e306f93be0029a06e6472a6a871d0e6588ffc62) coderabbitai[bot] 留下了评审评论
 [ claude[bot] ](/apps/claude) [ ](/oven-sh/bun/pull/30412/files/ed1a70f81708d7d137de8de057d11668c5f4e220) claude[bot] 留下了评审评论
 [ alii ](/alii) 等待 alii 的评审请求,alii 是代码所有者
另外还有 5 位评审人员
 [ KlonD90 ](/KlonD90) [ ](/oven-sh/bun/pull/30412/files/ed1a70f81708d7d137de8de057d11668c5f4e220) KlonD90 留下了评审评论
 [ pavelmakeenko ](/pavelmakeenko) [ ](/oven-sh/bun/pull/30412/files/ed1a70f81708d7d137de8de057d11668c5f4e220) pavelmakeenko 留下了评审评论
 [ Acid7Beast ](/Acid7Beast) [ ](/oven-sh/bun/pull/30412/files/ed1a70f81708d7d137de8de057d11668c5f4e220) Acid7Beast 留下了评审评论
 [ ymelois ](/ymelois) [ ](/oven-sh/bun/pull/30412/files/ed1a70f81708d7d137de8de057d11668c5f4e220) ymelois 留下了评审评论
 [ Tamicktom ](/Tamicktom) [ ](/oven-sh/bun/pull/30412/files/ed1a70f81708d7d137de8de057d11668c5f4e220) Tamicktom 留下了评审评论
评审人员的批准可能不会影响合并要求
被分配人
未分配
标签
暂无
项目
暂无
里程碑
无
开发
成功合并此拉取请求可能会关闭这些问题。
哎呀!
加载时出现错误。[请重新加载此页面]()。
19 名参与者
 [Jarred-Sumner](/Jarred-Sumner)
 [robobun](/robobun)
 [Eugeny](/Eugeny)
 [He-Pin](/He-Pin)
 [horoni](/horoni)
 [oskarscot](/oskarscot)
 [AlvaroMS25](/AlvaroMS25)
 [caleb-sideras](/caleb-sideras)
 [Yovach](/Yovach)
 [jmjoy](/jmjoy)
 [TheFanatr](/TheFanatr)
 [maxtheaxe](/maxtheaxe)
 [erikmay](/erikmay)
 [kynnyhsap](/kynnyhsap)
 [ma4ypic4y](/ma4ypic4y)
 [darkhanakh](/darkhanakh)
 [Thereallo1026](/Thereallo1026)
 [skyfallwastaken](/skyfallwastaken)
 [koushikxd](/koushikxd)
将此建议添加到可作为单个提交应用的批次中。此建议无效,因为代码未做任何更改。在拉取请求关闭时,无法应用建议。在查看部分更改时,无法应用建议。每一行只能应用一个建议到批次中。将此建议添加到可作为单个提交应用的批次中。不支持在已删除的行上应用建议。您必须更改此行中的现有代码才能创建有效的建议。过期的建议无法应用。此建议已应用或标记为已解决。无法从待处理的评审中应用建议。无法在多行注释上应用建议。在拉取请求排队合并时,无法应用建议。目前无法应用建议,请稍后再试。
页脚
[ ](https://github.com) (C) 2026 GitHub, Inc.
页脚导航
- [条款](https://docs.github.com/site-policy/github-terms/github-terms-of-service)
- [隐私](https://docs.github.com/site-policy/privacy-policies/github-privacy-statement)
- [安全](https://github.com/security)
- [状态](https://www.githubstatus.com/)
- [社区](https://github.community/)
- [文档](https://docs.github.com/)
- [联系我们](https://support.github.com?tags=dotcom-footer)
- 管理 Cookie
- 不共享我的个人信息
此时您无法执行该操作。