Rust to JavaScript,
keeping Rust's behaviour.
Limonite compiles Rust to readable ES modules. Existing crates run unchanged and pass their own tests; code that must be fast goes to WebAssembly in the same build.
Early and unreleased: nothing is on crates.io yet. Runs on macOS and Linux.
Rust's behaviour, kept
std behaves as documented: a HashMap is Rust's HashMap, a u64 is 64 bits, values drop when Rust says. That's why existing crates run unchanged and pass their own tests.
Fast where it matters
Code that has to be fast is marked #[wasm] and compiled to WebAssembly in the same build, callable from the JavaScript side.
Browser features, explicitly
limonite-port has types that are the real JS built-ins on the web (Map, fetch, promises, timers) and Rust implementations natively. You choose them; std is never swapped underneath you.
Where it stands
- Popular crates' own test suites, compiled to JavaScript: 13,745 of 14,239 tests (96.5%) over 53 crates have the same outcome as native, and every difference is explained (November 28, 2026). Per crate.
- 109 test programs print exactly what their native builds print.
- Source maps back to your Rust, and DevTools formatters that show Rust values as Rust.
Another framework?
Limonite isn't tied to one framework. Lazuli ports Solid's reactivity to Rust; React's or Vue's could be ported the same way, and run in the browser and natively. If you'd like to see that, or to do it, say so in an issue.