A Lua 5.4.7 interpreter written in Rust. Passes the upstream test suite (44/44); runs LuaRocks.
lua-rs is a complete, faithful implementation of the Lua 5.4.7 programming language written entirely in Rust—without any C code or dependencies. It provides a standalone binary that can run Lua scripts, an embedding API that lets Rust applications host Lua scripts with custom Rust functions, and a WebAssembly version that runs Lua inside web browsers and Node.js. The project passes all 44 official Lua test cases, achieves performance comparable to the reference C implementation (~1.3× slower on average, with some tests faster), and is MIT-licensed. It supports the standard Lua library, file I/O, dynamic library loading, and installation of third-party libraries via LuaRocks.
How It Works
You learn about a project that's reimplemented the popular Lua programming language entirely in Rust, without using any C code.
With one simple command, you install a ready-made program that runs Lua scripts directly from your terminal.
You write or paste any Lua code, and it runs instantly—math, text, programs—all without installing anything else.
Use lua-rs as a calculator, automation tool, or learn Lua through an interactive prompt.
Add powerful scripting capabilities to your app by calling a few Rust functions.
You can use LuaRocks—the standard package manager—to install libraries that others have written for Lua.
Since lua-rs passes every test from the official Lua creators, you know your scripts work exactly as expected.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.