Tool Open source
Relax is an experimental Rust live compiler and JIT runtime from the Makepad project for development iteration. It runs Cargo packages directly from source without rustc, LLVM, or a linker: functions are type-checked and compiled when first called, hot functions are recompiled through interpreter, O1, and O3 tiers, and changed function bodies are rechecked, recompiled, and swapped into the running process while preserving state. It also provides live test reruns, panic and breakpoint inspection, profiling, flight recording, memory analysis, and a command-line runner.
Relax replaces major parts of the usual Rust compilation pipeline with its own lexer, parser, type system, borrow checker, optimizer, register allocator, x86-64 and AArch64 backends, runtime, and cache. Its cache keys results by input hashes, and published machine code remains available while older versions may still be on a stack. It is intended for the edit-run loop rather than release builds; the repository reports slower optimized code, higher memory use, incomplete crate support, and live-patching limitations for changes such as struct layouts, imports, traits, impl headers, and macros. The project is licensed under MIT and has been tested mainly with Makepad, on Linux x86-64 and macOS arm64.
1 use taken from transcripts — each links to the moment in the video.
From the MakePad team, runs a cargo package straight from source with no rustc, LLVM or linker involved, compiling each function on first call, optimizing hot code in the background, and hot-patching changed functions without losing state. Reported to reach a large 3D game's first frame in 11 seconds on an M4 MacBook.
1 in the library.