mlua icon indicating copy to clipboard operation
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

Results 108 mlua issues
Sort by recently updated
recently updated
newest added

It would be useful to allow access to `UserData` across different dynamic library modules for structs that are guaranteed to have the same size and alignment. The `bytemuck` crate exports...

I can capture rust variable with `chunk!` macro like ```rust let name = "Rustacean"; lua.load(chunk! { print("hello, " .. $name) }).exec() ``` But what if I have external script inside...

Often the work I need to do on the contents of `MultiValue` does not require them to be in the order passed to the function. In these cases it would...

Basically every implementation of `ToLua` is not actually going to consume the value, yet `ToLua::to_lua` (or 0.9 `IntoLua::into_lua`) takes `self` by value. The only time I can think when you...

```lua debug.sethook(function() sleep(10) end, "l") sleep(1000) ``` ```bash runtime error: attempt to yield across a C-call boundary stack traceback: [C]: in function 'coroutine.yield' [string "?"]:9: in function 'sleep' [string "main"]:1:...

#### TL;DR I want to add proc macros for deriving `FromLua` & `ToLua`, and something like `lua_function` (akin to [`pyfunction`](https://docs.rs/pyo3/latest/pyo3/attr.pyfunction.html)) to improve writing Lua modules. Maybe more, TBD. I'm prepared...

When writing a module it's pretty hard to debug where exactly the origin of the error is because there isn't a backtrace of the function. Are there any plans for...

This would allow composition of chunks: ```rs let a = chunk!{...} let b = chunk!{... $a ...} ```

I have something like this ```rs #[derive(Serialize, Deserialize, Clone)] pub struct Uri { scheme: Option, authority: Option, path: String, query: Option, } impl UserData for Uri { fn add_methods>(methods: &mut...

First off, thanks for mlua, it's a great crate and I've used it for a few projects now without much fuzz. I've also been playing around with its Haskell counterpart,...