Getting Started
Introduction
Lehua is a standalone runtime for Luau. You write Luau, and Lehua runs it like a compiled language. When you are ready, it packs your whole program into one small executable that needs nothing else to run.
It is similar in spirit to runtimes for other languages, such as Node, Deno, and Bun, and to Lune for Luau. Lehua adds a few things of its own: real threads through the parallel keyword, a filesystem and process library that resolve paths relative to your script, and native DLL support that gets baked into the final build.
Compiles to one file
Tree shakes your modules and writes a single executable. No runtime to install on the target machine.
Real multithreading
The parallel keyword runs a file on its own thread and its own VM, with a channel to talk to it.
Built in Rust
Fast and safe, on top of mlua and tokio, with the Luau native code generator turned on.