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
Luau apparently supports breakpoints using lua_breakpoint API. Can support for this be added?
```rust use core::time::Duration; use futures_util::future::select_all; use mlua::prelude::*; async fn sleep(_lua: Lua, ms: u64) -> LuaResult { tokio::time::sleep(Duration::from_millis(ms)).await; Ok(()) } async fn select(_lua: Lua, threads: LuaMultiValue) -> LuaResult { let futs:...
Since that trait is sealed, it would be nice and convenient to add an impl for it to `Either` if both sides implement it. That way, you could have a...
It would be very helpful if there was some way to get span information for Lua errors – especially stuff like syntax errors. This would allow users to provide _much_...
Hi, I'm trying to integrate `mlua` (awesome project btw!) into a web project using `egui` and `trunk` for bundling. I know `mlua` can be built into `wasm` using `wasm-unknown-emscripten` toolchain....
Typos workflow was failing for #660. Investigated and found three issues: - An actual typo in `state.rs`. - Exceptions for intended typos in tests. - `transferrable` typo in rustc's stderr....
Will help in ci environments to know which system dependency to install based on feature.
Fedora [defines `LUA_IDSIZE` as 512](https://src.fedoraproject.org/rpms/lua/blob/rawhide/f/lua-5.4.6-idsize.patch) instead of the default 60. While this is an unorthodox choice, [Lua](https://www.lua.org/source/5.4/luaconf.h.html#LUA_IDSIZE) does explicitly state it as something you can configure. Due to `mlua-sys` always...
Currently, to get the underlying `&[u8]` represented by `BorrowedBytes` you need to go through `Deref`, `Borrow` or `AsRef`, but they all take a `&self` rather than `self`, which causes the...
I am trying to embed mlua into my ESP32 microcontroller, but getting linker errors. I have tried vendored, non-vendored versions, even luau, but none of those worked. Some straight up...