factorio-mlua 0.8.0

High level bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT) and Roblox Luau with async/await features and support of writing native Lua modules in Rust. Fork with added Factorio Lua support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
error[E0597]: `ibad` does not live long enough
  --> tests/compile/scope_userdata_borrow.rs:15:56
   |
11 |     lua.scope(|scope| {
   |                ----- has type `&mlua::Scope<'_, '1>`
...
15 |             scope.create_nonstatic_userdata(MyUserData(&ibad)).unwrap();
   |             -------------------------------------------^^^^^--
   |             |                                          |
   |             |                                          borrowed value does not live long enough
   |             argument requires that `ibad` is borrowed for `'1`
16 |         };
   |         - `ibad` dropped here while still borrowed