Get started

Limonite isn't on crates.io yet: you build it from its repository. You need rustup and Node 20 or later, on macOS or Linux.

1. The compiler

Limonite plugs into rustc, so it needs a pinned nightly toolchain of its own. The projects it compiles stay on stable Rust: it picks its toolchain itself.

git clone https://github.com/lazuli-rs/limonite
cd limonite
rustup toolchain install nightly-2026-11-24 --component rust-src rustc-dev llvm-tools
./build-sysroot.sh            # the backend, then std for it

2. A program

A small app using anyhow and semver, run under Node. It ends with an error on purpose: an anyhow error returned from main, cause and all.

cd examples/app
node ../../bin/limonite.mjs run

3. Your crate

In a crate of your own:

node <limonite>/bin/limonite.mjs build    # target/js/<bin>.js
node <limonite>/bin/limonite.mjs run      # under Node
node <limonite>/bin/limonite.mjs test     # its tests, compiled to JS
node <limonite>/bin/limonite.mjs size     # what the output is made of

For a UI, Lazuli builds on Limonite: one app for the browser, the desktop and mobile.

Limonite: MIT OR Apache-2.0. Part of lazuli-rs.

This site is a Lazuli app, compiled to JavaScript by Limonite.