BusyBox,
reborn in Rust.
A free-range, non-GMO fork of BusyBox compiled into a single fully-static binary.
Zero C in rustybox-core (MIT), memory-safe uutils + ripgrep + RustCrypto backends, and deterministic timeout built in for containers and agentic harnesses.
# Single static musl binary · MIT core or Full GPL-2.0 $ rustybox-core --version rustybox-core 0.4.0 (MIT edition) · static musl $ rustybox-core grep -rn "unsafe" crates/rustybox-core/ # ripgrep engine · zero BusyBox GPL code linked $ rustybox-core sha256sum release.tar.gz e3b0c44298fc1c149afbf4c8996fb924... release.tar.gz $ file rustybox-core-x86_64-unknown-linux-musl ELF 64-bit, statically linked, not a dynamic executable
Engineered for Bare-Metal Speed
v0.4.0 replaces runtime dispatch allocations with compile-time sorted O(log N) tables, bypasses stdout LineWriter syscalls with 64 KiB BufWriter<RawStdout>, aligns RustCrypto crates for ARMv8 SHA2 / x86 SHA-NI acceleration, and tunes fat LTO release codegen.
Hot-Path Throughput Gains v0.3.0 → v0.4.0
Measured head-to-head on stripped rustybox-core release binaries (higher throughput / lower latency wins).
Full Verified Benchmark Matrix 14 workloads
Apple Silicon aarch64-apple-darwin · rustc 1.99.0-nightly · rustybox-core --release.
| Workload | v0.3.0 | v0.4.0 | Delta |
|---|---|---|---|
| Binary size (release) | 9.53 MB | 8.93 MB | -6.4% |
| sha256sum (64 MiB) | 400.12 ms | 48.59 ms | 8.24× |
| grep -n (32 MiB, ~82k hits) | 130.23 ms | 19.62 ms | 6.64× |
| grep -F (32 MiB fixed) | 114.95 ms | 17.86 ms | 6.44× |
| gunzip -c (16 MiB) | 38.20 ms | 16.10 ms | 2.37× |
| tar -cf (2,000 files) | 96.29 ms | 61.01 ms | 1.58× |
| tar -tf (2,000 files) | 17.52 ms | 12.07 ms | 1.45× |
| grep -r (2,000-file tree) | 78.67 ms | 54.82 ms | 1.43× |
| gzip -c (16 MiB) | 46.62 ms | 33.45 ms | 1.39× |
| find (2,000 files) | 17.39 ms | 14.85 ms | 1.17× |
| xargs -n 1000 (20k tok) | 53.05 ms | 47.18 ms | 1.12× |
| Symlink argv[0] dispatch | 10.26 ms | 9.94 ms | 1.03× |
| cat (64 MiB · 3.74 GB/s) | 17.49 ms | 17.09 ms | 1.02× |
| wc -l (32 MiB · 2.57 GB/s) | 12.57 ms | 12.45 ms | 1.01× |
Applet Explorer
Every applet in rustybox-core (MIT) routes to battle-tested Rust crates — zero subprocessing, single multicall binary. Click any applet to inspect its backend and invocation.
rustybox-core timeout 30s ./agent-task
Built to Bound Autonomous Agents
When an LLM agent executes shell commands inside a minimal container or microVM, hung processes and missing POSIX tools break the loop. Rustybox ships the exact safe primitives required in one static binary.
Drop Into Any Linux Host or Scratch Image
Prebuilt static musl binaries for both x86_64 and aarch64, plus Sigstore cosign source provenance and stripped -slim builds.
Zero CVEs. Dual Editions. Signed Provenance.
Reimplementing core applets in safe Rust eliminates the entire class of C heap/stack memory corruptions that plagued legacy userlands.
BusyBox CVE History 64 vs 0
Upstream BusyBox accumulated 64 CVEs (buffer overflows, UAF, parser exploits). Safe Rust applets eliminate these memory-safety classes by construction.
Dual-Edition Licensing MIT / GPL
Pick permissive zero-GPL redistribution or full BusyBox parity.
| Edition | License | Applets |
|---|---|---|
| rustybox-core | MIT | 93 safe (Linux) |
| rustybox | GPL-2.0 | 399 full |
| rustybox-core (release) | MIT | 8.93 MB (-6.4%) |
| rustybox-core-slim | MIT | UPX ~3.2 MB |
| Dependencies | Static musl | 0 runtime |
Supply-Chain Pipeline Sigstore
Every tagged release runs natively on x86_64 and ARM64 runners with cryptographic provenance:
| 01 | Keyless cosign source archive signature |
| 02 | Static musl link via wild linker |
| 03 | upx --best --lzma (~4 MB w/ symbols) |
| 04 | *-slim stripped variant (~3.2 MB) |
Agent-Native Discovery & RFC 10008 HTTP QUERY
rustybox.io exposes machine-readable Markdown at /llms.txt and a ranked passage search endpoint at /.well-known/search supporting RFC 10008 QUERY, GET ?q=, and POST.
# RFC 10008 HTTP QUERY (safe, idempotent, cacheable) $ curl -X QUERY https://rustybox.io/.well-known/search \ -H "Content-Type: text/plain" \ --data "timeout agentic harness static musl" # Or standard GET / POST / llms.txt $ curl "https://rustybox.io/.well-known/search?q=aarch64+install" $ curl -H "Accept: text/markdown" https://rustybox.io/
Try Agent Search Locally text/markdown
Queries /.well-known/search with ranked Markdown passages and canonical URL anchors.
# Click QUERY to test /.well-known/search > Discovery: <meta name="agent:endpoint" content="/.well-known/search"> > Alternate: <link rel="alternate" type="text/markdown" href="/llms.txt">
Resurrected in the Open History
Born from a six-year-dead c2rust transpile of BusyBox, resurrected on a modern nightly toolchain, and systematically hardened applet-by-applet into safe Rust. Read the resurrection story →
Semantic Plausibility vs. Structural Correctness Essay · Part 2
Why AI visual models synthesize locally plausible quantum diagrams that fail global physical constraint closure — and what deterministic systems teach us. Read Part 2 →
Sponsor rustybox
Built in the open, one honest commit at a time. If rustybox saves you a container megabyte, eliminates a C CVE class, or puts a clean timeout around a runaway agent, consider backing the work.
Name in SPONSORS.md + funding memory-safe Unix userland.
Above + your name/handle credited in the project README.
Above + your logo featured right here on rustybox.io.
Above + top placement + a vote on which applets go safe Rust next.
One-time contributions welcome · every sponsor credited (opt-out anytime)