mlua
luax
mlua | luax | |
---|---|---|
4 | 2 | |
2,234 | 187 | |
3.6% | 0.0% | |
9.5 | 9.4 | |
6 days ago | 5 days ago | |
Rust | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mlua
-
Lune: Standalone Luau Runtime
I can assume that Lune (and many of the Rust-based Luau runtimes that followed it) were written in Rust mainly because of the existence of mlua <https://github.com/mlua-rs/mlua> and the bindings it provides for Luau. Binding Luau in Zig or C isn't as plug-and-play but is still relatively easy, binding Luau in Go is a nightmare. I'm working on better Luau support for Go, and some others support/binding libraries for other languages are also in development, which is awesome to see and will hopefully bring more language diversity to the Luau ecosystem.
-
Koto Programming Language
This is already available as an optional Lua target in mlua [0]. I recently built a programmable server for Server-Sent Events scriptable with Lua [1]. I chose Lua 5.4, but it's trivial to switch it to LuaJIT, or really any other Lua derivative including Roblox Luau. It's just a matter of enabling the mlua feature you want.
[0] https://github.com/mlua-rs/mlua
-
Rhai: An embedded scripting language for Rust
Is there something in specific that makes this easier to use in Rust projects compared to the Lua wrappers/bindings like mlua[0]? Or is it just an overall ergonomics thing?
Genuine question, as I don't have any prior experience embedding any scripting language into a Rust project.
[0]: https://github.com/mlua-rs/mlua
-
LuaX – Lua interpreter, REPL and useful packages
If you want it to interact well with a couple of really popular languages there's this:
https://github.com/mlua-rs/mlua
Rust and through Deno, JavaScirpt.
luax
- LuaX – Lua interpreter, REPL and useful packages
-
A good REPL solution
LuaX (https://github.com/CDSoft/luax). “luax is a Lua interpreter and REPL based on Lua 5.4.4, augmented with some useful packages. luax can also produces standalone executables from Lua scripts.”
What are some alternatives?
script-bench-rs - Rust embedded scripting languages benchmark
luaprompt - An embeddable Lua command prompt as well as a stand-alone interpreter with pretty-printing and autocompletion.
rsmodules - The RSModules package is a tool to help you to modify your environment by using modulefiles.
ilua - Portable Lua kernel for Jupyter
luac-parser-rs - lua bytecode parser written in Rust using nom, part of metaworm's lua decompiler, support lua51/lua52/lua53/lua54/luajit/luau https://luadec.metaworm.site/
rlwrap - A readline wrapper