Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: springmin/bun

Bun OHOS Daily Build 2026年05月28日

28 May 15:43
@springmin springmin
e0c8303
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

Bun for OHOS — Daily Build

日期: 2026年05月28日
版本: 1.4.0-daily.20260528
提交: 43f2cebbb9
构建类型: Release (Rust, PIE dynamic)

最新测试结果

  • 1,259/1,688 文件 PASS (74.6%)
  • 66,996 用例 PASS

使用方式

# 下载后签名
binary-sign-tool sign -inFile bun-ohos-aarch64-1.4.0-43f2cebbb9.elf -outFile bun -selfSign "1"
chmod 755 bun
./bun --version

注意事项

  • 请勿在 FUSE 目录(/storage/Users/)下运行
  • 建议设置 TMPDIR 环境变量
  • spawnSync stdout pipe 捕获不可用(平台限制)
  • 详见 Bun-OHOS-Port-Report.md
Assets 3
Loading

Rust Bun OHOS v1.4.0-canary.1

21 May 04:41
@springmin springmin

Choose a tag to compare

Pre-release

Release assets pending upload...

Loading

Zig build 3.1.4-release

15 May 01:52
@springmin springmin

Choose a tag to compare

Bun for HarmonyOS (OHOS) v1.3.14 - Release Notes
Zig Incremental Build from commit 9f16f1c

Binary: bun-ohos-aarch64 (99MB, statically linked, aarch64)
Tag: Zig编译3.1.4-release
Commit: 9f16f1c
Date: 2026年05月15日

OVERVIEW

Bun v1.3.14 (canary) ported to HarmonyOS (OHOS) on aarch64. Full static
link, no runtime library dependencies. Requires OHOS SELinux binary signature.

TEST RESULTS:Effective pass rate (excluding OS limitations): ~88.7%

Total tests: 1,677
Passed: 1,257 (75.0%)
Failed: 420

WHAT WORKS

  • JavaScript runtime and TypeScript transpilation
  • HTTP server (Bun.serve), fetch API, WebSocket
  • Web Crypto API
  • Bun.build (bundler)
  • Bun.shell (except PTY-dependent features)
  • Bun.sqlite
  • Bun.spawn (async mode)
  • File system I/O
  • DNS resolution
  • Test runner (bun test)
  • Package manager (bun install - with link fallback)
  • Node.js compatibility layer (most APIs)

KNOWN LIMITATIONS

A. OHOS OS Limitations (cannot fix, ~260 tests affected):

  • PTY not supported: shell interactive commands, terminal tests
  • dlopen() blocked: FFI native library loading
  • HTTP/3 (QUIC) not supported
  • libsecret not available
  • CouldntReadCurrentDirectory: getcwd() fails in some edge cases
    (fallback implemented, minor residual failures)
  • UNIX socket: partial failures

B. Test Environment (improvable, ~100 tests):

  • Timeouts and OOM under parallel load
  • Third-party library compatibility:
    • @grpc/grpc-js (~30 tests)
    • jsonwebtoken (~16 tests)
    • socket.io (~12 tests)
    • Express (partial)

C. Known Functional Limitations:

  • spawnSync({stdout:'pipe'}) - pipe capture not possible on OHOS
    (kernel vfork/pipe limitation)
  • bun install uses file copy fallback when hard links blocked by
    SELinux (slower but functional)
  • Binary must be signed: binary-sign-tool sign -selfSign "1"

DEPLOYMENT

  1. unzip bun-ohos-aarch64.zip
  2. binary-sign-tool sign -selfSign "1" bun
  3. ./bun --version
  4. cp bun ~/.bun/bun (for subprocess PATH)
  5. binary-sign-tool sign -selfSign "1" ~/.bun/bun

BUILD INFORMATION

Target: aarch64-linux-ohos (musl)
Toolchain: LLVM 22 + OHOS SDK sysroot
Build system: Zig-based (pre-Rust-rewrite baseline)
Interpreter: /system/lib/ld-musl-aarch64.so.1
Static link: No NEEDED entries (fully static)

Loading

Rust Bun OHOS v1.3.14

17 May 09:17
@springmin springmin

Choose a tag to compare

Rust Bun for HarmonyOS (OHOS) v1.3.14

First Rust-rewrite based build of Bun for HarmonyOS aarch64.

Test Results

  • Total test cases: 53,391
  • PASS: 47,759 (89.5%)
  • FAIL: 3,210 (6.0%)
  • SKIP: 2,422 (4.5%)

Build Info

  • Binary: 101MB, statically linked, aarch64
  • Signature required: binary-sign-tool sign -selfSign "1" bun
  • Interpreter: /system/lib/ld-musl-aarch64.so.1

Core Feature Pass Rates

Module Pass Rate
Web API (fetch, streams, URL) 99.6%
Node.js compat (fs, net, crypto) 99.3%
Bun API (shell, spawn, sqlite) 96.2%
Bundler 82.3%
Overall (by case) 89.5%

Key Improvements vs Zig Version

  • Category: Rust rewrite with all OHOS Zig fixes ported
  • PASS: 1,322 vs 1,257 (file-level)
  • 'Cannot read directory' errors: 1704 → 1 (-99.9%)
  • SEGFAULT on startup: fixed (WebKit PIC issue)

Known Limitations

See attached test report for details. Main limitations: PTY not supported, dlopen blocked by SELinux, no HTTP/3 (QUIC).

Loading

Bun for OHOS aarch64

02 Apr 23:27
@springmin springmin
3ed4186
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

Bun 1.3.11 for OpenHarmony OS (OHOS) aarch64 architecture.

Build Details:

  • Version: 1.3.11
  • Platform: OHOS aarch64
  • Build Type: Release
  • Static linked executable (no dynamic dependencies)
  • Compatible with QEMU for testing

Tested:

  • ✅ QEMU execution
  • ✅ JavaScript runtime
  • ✅ Static linking verified
  • ✅ 4K alignment for HarmonyOS signing

Files:

  • bun - Bun executable for OHOS aarch64
  • LICENSE - License file

Usage:

# On OHOS device or via QEMU:
./bun --version
./bun -e 'console.log("Hello, OHOS!");'
Loading

AltStyle によって変換されたページ (->オリジナル) /