Relax
A live JIT compiler for Rust — run your code straight from source, no rustc, no LLVM, no waiting.
Project intro
Relax is a live compiler and JIT runtime for Rust: it runs a Cargo package straight from source, with no rustc, no LLVM and no linker in the loop. It picked up more than 680 stars on GitHub in its first two weeks.
Instead of waiting for a build, you just run your program. Relax compiles each function when it is first called, keeps optimising the hot ones while the program runs, and patches your edits into the running process, so your state survives the change. A large 3D game reaches its first frame in 11 seconds from a clean checkout, where the usual build takes about three minutes, and saving a file re-runs 92 tests in 2.2 seconds.
It is an experimental tool, and it says so up front: it is not affiliated with the Rust project, it does not inherit Rust's safety guarantees automatically, and the code it runs is a little slower than rustc's optimised output. It is built for the edit-run loop while you develop, and anything you ship should still be built with Rust itself.
Relax itself is one Rust library of about 438,000 lines with no crates.io dependencies. It runs on Linux x86-64 and macOS arm64, and it is MIT licensed and free.
Actions
Tech stack
Project info
- Project category
- Developer Tools
- Project status
- Online
- Collaboration intent
- None