luau 0.732.0

Safe lifetime-bound Rust embedding API for the Luau runtime
use luau::{Function, Lua};

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

    let function: Function<'_> = lua
        .load(
            r#"
            return function(name)
                return "hello, " .. name
            end
            "#,
        )
        .set_name("call_function")
        .call(())?;

    let greeting: String = function.call("Rust")?;
    println!("{greeting}");
    Ok(())
}