mlua 0.3.0-alpha.1

High level bindings to Lua 5.1/5.2/5.3 (including LuaJIT) with support of writing native lua modules in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use mlua::{Lua, Result};

struct Test(i32);

fn main() {
    let test = Test(0);

    let lua = Lua::new();
    let _ = lua.create_function(|_, ()| -> Result<i32> {
        Ok(test.0)
    });
}