mlua
mlua copied to clipboard
High level Lua 5.4/5.3/5.2/5.1 (including LuaJIT) and Roblox Luau bindings to Rust with async/await support
Some trivially valid examples are currently impossible due to lifetime annotations: ``` // This works fine let mut i = 0; lua.scope(|scope| { scope.create_any_userdata_ref_mut(&mut i); }); // This fails because...
## Context I've been slowly creating some modules to use in various projects (mostly wrapping rust libraries). Some of them are async libraries and I want to use these modules...
Is there anything I need to be careful of when using the `send` feature flag? It being locked behind a feature flag makes me wary that it has some side...
i'm developing a nvim plugin which is mostly a thin wrapper around a native library. such library works in background and wants to invoke callbacks to do arbitrary work on-demand...
I just made it but it seems useful so far, at least for me it is, works with most primitives so I think it's worth adding to help reduce boilerplate:...
```rust fn main() { let lua = unsafe { Lua::unsafe_new() }; let helloworld = "test"; let _ = lua.load(chunk!{ print($helloworld) }); } ``` Hi I'm wondering is there a way...
This includes `Wrapping`, `Saturating`, `NonZero`, `NonZero*` etc. I think parsing to and from numbers in `FromLua` and `IntoLua` without retaining these types' special property should be valid for most use...
I’m trying to run mlua in a tokio spawn local through a threadpool for luau However, errors in rust function seems to cause un-unwindable panics due to my usage of...
I'm having some trouble conceptualizing how to setup a project and am looking for any suggestions for how to keep it simple so I don't end up with 4 implementations...
Getting this error when trying to load this library on Android (Termux). This doesn't appear to be a problem on any other targets. Builds for macos, windows & linux all...