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
I wanted to use `create_function` with this function: ```rs fn read(lua: &Lua, filename: PathBuf) -> LuaResult { match std::fs::read_to_string(&filename) { Ok(string) => Ok(Either::Left(string)), Err(error) => Ok(Either::Right(( Nil, format!("{}: {error}", filename.display()),...
I've built a tool leveraging this fantastic project and I'm keen to get my head around any methodologies that can be used in conjunction with lua to automate document generation....
Would be nice if mlua could offer a error-value feature flag to allow retrieving the value of the error directly instead of it being just stringified into a traceback. This...
A Lua error can contain any Lua value, bubbling up the stack to the nearest native function (or `pcall`). The following Lua code for instance uses an error to call...
I don't know if this is a bug or a feature request to be honest. The minimal repro below fails at the unwrap in main if `panic = "abort"` is...
Unless there's another of achieving the same thing, I propose adding a hook triggers for **resuming** and **yielding** a coroutine/thread. I want to measure the CPU time spent running Lua...
Hi, first thanks for maintaining the library. Regarding a3302af this just made some work with `Value` a lot more cumbersome. Calling the Lua string type String is also confusing but...
Hi, I have an mlua module that has to make an async call, and I'm not sure how to go about it exactly. My main issue is that on calling...