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
Implementation of a close function, marking a thread as finalized.
I opened a PR for basic yielding + continuations recently and it would be nice if the PR could be reviewed sooner than later: https://github.com/mlua-rs/mlua/pull/588 It includes both yielding for...
E.g. using ``lua_close``. Following a close operation, safety could (probably) be ensured by disallowing any Lua VM operations whatsoever. Right now you need to drop all references to Lua VM...
Luau exposes lua_get/setthreaddata for setting thread level data. Would be nice for mlua to support as you could then store data like a delay queue key etc in a thread...
This PR makes a small change to `mlua` so it no longer panics when unable to disable C modules. This is primarily meant for [Pluto](https://pluto-lang.org/), which has sandbox options that...
This normally doesn't matter much unless the userdata struct itself is generic. E.g. ``` pub struct Foo { pub foo: T } impl LuaUserData for Foo { } ``` In...
I currently have ~50-100 lines of code to do exactly what the (private) Chunk::try_cache method does but worse. It would be nice if Chunk::try_cache could be exposed as such. Also,...
I want to implement copy-on-write for a `add_field_function_get()`: I have a `File` that remains immutable throughout `Lua::scope()`, and thus its `url` property is also immutable, and since that `url` property...
### Problem most apps/games have the concept of a main-thread, where a lu it will often hold onto thread-local objects (which must be created and destroyed on main-thread) like opengl...