rluau 0.1.1

High level luau bindings for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use luau_src::vm as raw;

#[repr(transparent)]
pub struct Luau(pub *mut raw::lua_State);

impl Drop for Luau {
	fn drop(&mut self) {
		unsafe { raw::lua_close(self.0) }
	}
}

impl Default for Luau {
	fn default() -> Self {
		Self::new()
	}
}