RUST COMPILER · ZERO LLVM

Forge is a drop-in Rust compiler & build cache.

Replaces LLVM with a native Rust backend and a built-in git worktree store.

$ forge build --release
Horizontal bar chart comparing Cargo, MBX, and Forge on Apple M4 Pro: 2nd git worktree synbench 0.17s for Forge (42x faster than Cargo 7.11s, 2.6x faster than MBX 0.44s) and warm 1-line edit realworld 0.25s for Forge (2.2x faster than MBX 0.54s and Cargo 0.55s)

Faster in every phase on Apple M4 Pro.

Cargo vs MBX vs Forge · nightly-2026-11-13 · interleaved medians.

  • 3.1× less CPU

    Cold build (synbench)

    Cargo 7.43 s (15.4 s CPU) · MBX 5.07 s · Forge 4.13 s (4.92 s CPU)

  • 42× vs Cargo · 2.6× vs MBX

    2nd Git Worktree (synbench)

    Cargo 7.11 s · MBX 0.44 s · Forge 0.17 s

  • 2.2× faster

    Warm 1-line edit (realworld)

    Cargo 0.55 s · MBX 0.54 s · Forge 0.25 s

  • 3× faster

    No-op rebuild (realworld)

    Cargo 103 ms · MBX 61 ms · Forge 34 ms

One binary. Zero migration.

  • CLI

    Drop-in Cargo CLI

    Keep Cargo.toml, Cargo.lock, workspaces, and flags. Swap cargo for forge.

  • CACHE

    Built-in Worktree Cache

    Content-addressed ~/.forge/store shared across every checkout & branch. 0 units rebuilt on new worktrees.

  • CODEGEN

    Faster & Smaller Binaries

    20–25% faster runtime (hashmap −28%, synbench −25%, realworld −21%) and 20–52% smaller binaries than LLVM 23.1.5 (−25.5% macOS, −52.1% Windows .exe).

  • TARGETS

    Zero-Setup Cross-Compile

    Built-in rust-lld — no Docker, no cross-GCC (2.5× faster than Cargo). Targets macOS, Linux (musl/gnu), Windows (gnu/msvc), iOS, and Android.

Drop-in commands. Faster, smaller output.

Swap cargo for forge

$ cargo build --release
$ forge build --release

Cross-compile with built-in rust-lld — 2.5× faster than Cargo

$ forge build --release --target x86_64-unknown-linux-musl

Targets: macOS · Linux (musl / gnu) · Windows (gnu / msvc) · iOS · Android.

Horizontal bar chart comparing Forge native Rust codegen against LLVM 23.1.5: runtime execution time reduced by 28% on hashmap, 25% on synbench, and 21% on realworld; compiled binary size reduced by 52.1% on Windows .exe and 25.5% on macOS

Compiled rustc itself. 0 MB of LLVM.

  • 72 s

    Full build & link

  • 89 MB

    vs 232 MB (−61%)

  • 0 MB

    Of LLVM linked

  • 10 ms

    vs 22 ms (2× startup)

COMING SOON

Swap cargo for forge.

$ forge build --release