Skip to content

Commit

Permalink
Update Luau to 0.650 (luau0-src 0.11.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Nov 3, 2024
1 parent 46ee7ea commit b34d67e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mlua-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cfg-if = "1.0"
pkg-config = "0.3.17"
lua-src = { version = ">= 547.0.0, < 547.1.0", optional = true }
luajit-src = { version = ">= 210.5.0, < 210.6.0", optional = true }
luau0-src = { version = "0.11.0", optional = true }
luau0-src = { version = "0.11.1", optional = true }

[lints.rust]
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(raw_dylib)'] }
1 change: 1 addition & 0 deletions mlua-sys/src/luau/lua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ extern "C-unwind" {

pub fn lua_pushlightuserdatatagged(L: *mut lua_State, p: *mut c_void, tag: c_int);
pub fn lua_newuserdatatagged(L: *mut lua_State, sz: usize, tag: c_int) -> *mut c_void;
pub fn lua_newuserdatataggedwithmetatable(L: *mut lua_State, sz: usize, tag: c_int) -> *mut c_void;
pub fn lua_newuserdatadtor(L: *mut lua_State, sz: usize, dtor: lua_Udestructor) -> *mut c_void;

pub fn lua_newbuffer(L: *mut lua_State, sz: usize) -> *mut c_void;
Expand Down
2 changes: 2 additions & 0 deletions mlua-sys/src/luau/lualib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub const LUA_BUFFERLIBNAME: &str = "buffer";
pub const LUA_UTF8LIBNAME: &str = "utf8";
pub const LUA_MATHLIBNAME: &str = "math";
pub const LUA_DBLIBNAME: &str = "debug";
pub const LUA_VECLIBNAME: &str = "vector";

extern "C-unwind" {
pub fn luaopen_base(L: *mut lua_State) -> c_int;
Expand All @@ -25,6 +26,7 @@ extern "C-unwind" {
pub fn luaopen_utf8(L: *mut lua_State) -> c_int;
pub fn luaopen_math(L: *mut lua_State) -> c_int;
pub fn luaopen_debug(L: *mut lua_State) -> c_int;
pub fn luaopen_vector(L: *mut lua_State) -> c_int;

// open all builtin libraries
pub fn luaL_openlibs(L: *mut lua_State);
Expand Down

0 comments on commit b34d67e

Please sign in to comment.