|
|
|
|
|
by VWWHFSfQ
514 days ago
|
|
> I’ve tried integrating with mlua. It works, but Rhai is simpler to embed. Simpler to build. I'm curious what challenges you faced when embedding Lua via mlua? I've done it many times in projects and I've always found it to be trivial. $ cargo add mlua --features lua54,vendored
And then bringing it into Rust is simple like: let lua = mlua::Lua();
Are your requirements more complicated than this that makes it not as easy? I've never had to mess around with linking the system Lua, or anything else. mlua just brings its own Lua distribution with the `vendored` feature. |
|
I haven't used Rhai, but Lua has a lot of impedance mismatch with Rust that could be avoided with a fresh language. (Or maybe even just a fresh implementation of Lua, like piccolo is trying: https://github.com/kyren/piccolo)