luau 0.732.0

Safe lifetime-bound Rust embedding API for the Luau runtime
1
2
3
4
5
6
7
8
9
10
11
use luau::{Lua, Result};

fn main() -> Result<()> {
    let lua = Lua::new()?;

    let function = lua.scope(|scope| {
        scope.create_function(|_, arguments| arguments.finish(()))
    })?;

    function.call::<()>(())
}