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
12
#[derive(luau::Userdata)]
struct Counter;

#[luau::userdata_impl]
impl Counter {
    #[luau(get)]
    fn value(&mut self, extra: i32) -> luau::Result<i32> {
        Ok(extra)
    }
}

fn main() {}