Forge: a Rust-only codegen backend (LLVM replacement) written in Rust, aarch64-apple-darwin first
// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
// how to help
// readme
Forge is a code generation backend for rustc, written in Rust, plus a forge CLI that wraps Cargo. Your Cargo.toml, Cargo.lock and workspaces stay as they are. forge build --release runs the real Cargo, compiles your code with Forge instead of LLVM, and shares every compiled crate through a content-addressed store in ~/.forge/store.
Install
Prebuilt for macOS on Apple Silicon and Linux (glibc) on x86-64 and arm64:
curl -fsSL https://raw.githubusercontent.com/0xtlt/forge/main/install.sh | sh
The script downloads the release archive and SHA256SUMS.txt, checks the archiveβs SHA-256 (it stops on a mismatch), unpacks forge and the backend into ~/.forge, installs the pinned nightly with rustup, runs forge setup, and prints the PATH line to add.
curl -fsSL https://raw.githubusercontent.com/0xtlt/forge/main/install.sh | sh -s -- --version v0.1.0 # a pinned release
curl -fsSL https://raw.githubusercontent.com/0xtlt/forge/main/install.sh | sh -s -- --nightly # built from main every day
FORGE_VERSION (v0.1.0, latest, nightly), FORGE_HOME (default ~/.forge) and FORGE_REPO do the same from the environment. Later: