Alex Orlenko
Alex Orlenko
Thanks for the PR! I'm probably okay to add `external` feature flag to `mlua-sys`, but could we leave `mlua` feature flags unchanged. For anyone who need the `external` feature flag,...
Also to note, Pluto support will be added to a next mlua v0.11
> Will it also support configuring the sandboxing options in Pluto's `luaconf.h`? Did not think about it yet. From the [doc](https://pluto-lang.org/docs/For%20Integrators#prevent-loading-of-binary-modules) seems this option just disable loading binary modules? Will...
> Calling the Lua string type String is also confusing but that is now part of the API and has to stay. I agree. `mlua` inherited it from `rlua` and...
Unfortunately it would be unsound. Imagine the situation: ```rust let lua = Lua::new(); let s = lua.create_string("hello, world")?; let b: &[u8] = s.as_bytes().into(); assert_eq!(b, b"hello, world"); drop(lua); assert_eq!(b, b"hello, world");...
You can try the following hook: ```rust lua.set_global_hook(HookTriggers::ON_CALLS, |_lua, debug| { let name = debug.names().name; if name.as_deref() == Some("poll") { println!("calling poll()"); } if name.as_deref() == Some("yield") { println!("calling yield()");...
Unfortunately it's hard to guess your OS, build flags, Lua version and feature flags. On macOS M3 with vendored Lua 5.1 - 5.4 everything works as expected. Luau uses C++...
If you change return type to `LuaResult`, then any combination of values can be returned by: ``` match std::fs::read_to_string(&filename) { Ok(string) => string.into_lua_multi(lua), Err(error) => (Nil, format!("{}: {error}", filename.display()), error.raw_os_error()).into_lua_multi(lua)...
Do you have any code that I can run? On the first sight everything looks ok. PS you can attach extra context to Lua errors to make them more friendly,...
I debugged the issue a bit and the problem is that `cliuse` is a foreign userdata so mlua v0.9 cannot retrieve metadata for it (for safety reasons). It's actually fixed...