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 94 mlua issues
Sort by recently updated
recently updated
newest added

```rust use core::time::Duration; use mlua::prelude::*; async fn sleep LuaResult { tokio::time::sleep(Duration::from_secs(1)).await; Ok(()) } fn main() { let rt = tokio::runtime::Builder::new_current_thread() .enable_all() .build() .unwrap(); rt.spawn(async { loop { println!("hello"); tokio::time::sleep(Duration::from_secs(1)).await; }...

How do you feel about a table macro? Something like: ````rust macro_rules! insert_sequence { (@replace_expr $_t:tt $sub:expr) => {$sub}; (@count $($tts:tt),*) => {0 $(+ insert_sequence!(@replace_expr $tts 1))*}; ($table:ident => $head:tt...

Hi! I created a userdata just a handler with a field `index`, which the real value store in Lua. I want to delete the real value when the userdata is...

MSVC with LUA_INC / LUA_LIB / LUA_LIB_NAME environment variables. Windows 10 ,mlua 5.0.1 I set up,but faild. Can you give a more detailed example or configuration

Kind of a big ask so I 100% understand why you wouldn't want to do this I forked https://github.com/brandonros/mlua and https://github.com/brandonros/luajit-src-rs and "patched" (hacked) this for myself. I kind of...

Hello, I am making a crate that implements an mlua compatibility layer with another crate I maintain, so that me and others can create separate mlua apps and use that....

This error only occurs on Lua 5.1 but not on Lua 5.4. Log ```rust ``` Code: https://github.com/gptlang/lua-tiktoken

How do I return a reference to a userdata? I've read the examples but I couldn't understand how to do this. I need to return a mutable userdata reference to...

I'm bringing a suggestion from my [rlua PR](https://github.com/mlua-rs/rlua/pull/287) (and [piccolo](https://github.com/kyren/piccolo/issues/38)) that proposes adding the ability to compose argument parsers. Motivation for this is simplifying function overloading from bound lua methods....

I was wondering if there's any possibility for an alternative form of owned functions/values/etc that internally hold a `Weak` instead of an `Arc` to mitigate any possible reference cycles when...