mlua 0.4.1

High level bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT) with async/await features and support of writing native lua modules in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
error: borrowed data cannot be stored outside of its closure
 --> $DIR/scope_callback_outer.rs:7:17
  |
5 |     let mut outer: Option<Table> = None;
  |         --------- ...so that variable is valid at time of its declaration
6 |     lua.scope(|scope| {
  |               ------- borrowed data cannot outlive this closure
7 |         let f = scope
  |                 ^^^^^ cannot be stored outside of its closure
8 |             .create_function_mut(|_, t: Table| {
  |              ------------------- cannot infer an appropriate lifetime...