# Forge — Drop-in Rust compiler & build cache. 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.

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.

```sh
$ forge build --release
```

- [Coming soon](#s_status)
- [Benchmarks](#s_benchmarks)

## Faster in every phase on Apple M4 Pro.

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

### Cold build (synbench)

*3.1× less CPU*

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

### 2nd Git Worktree (synbench)

*42× vs Cargo · 2.6× vs MBX*

Cargo 7.11 s · MBX 0.44 s · **Forge 0.17 s**

### Warm 1-line edit (realworld)

*2.2× faster*

Cargo 0.55 s · MBX 0.54 s · **Forge 0.25 s**

### No-op rebuild (realworld)

*3× faster*

Cargo 103 ms · MBX 61 ms · **Forge 34 ms**

## One binary. Zero migration.

### Drop-in Cargo CLI

*CLI*

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

### Built-in Worktree Cache

*CACHE*

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

### Faster & Smaller Binaries

*CODEGEN*

**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).

### Zero-Setup Cross-Compile

*TARGETS*

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`**

```sh
$ cargo build --release
$ forge build --release
```

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

```sh
$ 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](https://forge.prismsdk.dev/_img/dd6b12ebf5d98fa3ec198a09d213841e87515fb0bd50727f01a6fe3d464e25b6.webp?width=1280&s=PFxXNVs3qQYapjZbZJ_WWA)

## 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.

```sh
$ forge build --release
```

- [Back to top](#s_hero)

---

Forge · <https://forge.prismsdk.dev/>
