Skip to content

Commit 8e6d652

Browse files
committed
Bump luau-src to 0.18.0 (Luau 0.705)
1 parent 1be9e6c commit 8e6d652

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

mlua-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cfg-if = "1.0"
4343
pkg-config = "0.3.17"
4444
lua-src = { version = ">= 550.0.0, < 550.1.0", optional = true }
4545
luajit-src = { version = ">= 210.6.0, < 210.7.0", optional = true }
46-
luau0-src = { version = "0.17.0", optional = true }
46+
luau0-src = { version = "0.18.0", optional = true }
4747

4848
[lints.rust]
4949
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(raw_dylib)'] }

mlua-sys/src/luau/lauxlib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ unsafe extern "C-unwind" {
8585

8686
pub fn luaL_callyieldable(L: *mut lua_State, nargs: c_int, nresults: c_int) -> c_int;
8787

88+
#[link_name = "luaL_traceback"]
89+
pub fn luaL_traceback_(L: *mut lua_State, L1: *mut lua_State, msg: *const c_char, level: c_int);
90+
8891
// sandbox libraries and globals
8992
#[link_name = "luaL_sandbox"]
9093
pub fn luaL_sandbox_(L: *mut lua_State);

mlua-sys/src/luau/luarequire.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ pub struct luarequire_Configuration {
5858
path: *const c_char,
5959
) -> luarequire_NavigateResult,
6060

61+
// Provides an initial alias override opportunity prior to searching for configuration files.
62+
// If NAVIGATE_SUCCESS is returned, the internal state must be updated to point at the
63+
// aliased location.
64+
// Can be left undefined.
65+
pub to_alias_override: Option<
66+
unsafe extern "C-unwind" fn(
67+
L: *mut lua_State,
68+
ctx: *mut c_void,
69+
alias_unprefixed: *const c_char,
70+
) -> luarequire_NavigateResult,
71+
>,
72+
6173
// Provides a final override opportunity if an alias cannot be found in configuration files. If
6274
// NAVIGATE_SUCCESS is returned, this must update the internal state to point at the aliased module.
6375
// Can be left undefined.

src/luau/require.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ pub(super) unsafe extern "C-unwind" fn init_config(config: *mut ffi::luarequire_
299299
(*config).is_require_allowed = is_require_allowed;
300300
(*config).reset = reset;
301301
(*config).jump_to_alias = jump_to_alias;
302+
(*config).to_alias_override = None;
302303
(*config).to_alias_fallback = None;
303304
(*config).to_parent = to_parent;
304305
(*config).to_child = to_child;

0 commit comments

Comments
 (0)