Expose luautf8 module through runtime

This removes the runtime dependency on the external `luautf8` C library.
This commit is contained in:
meehl committed 2026-10-14 11:34:23 +02:00
1 parent ae9c59d132
commit c6d5241b98
4 files changed
+52

No files matched your search

+3
View File
@@ -124,6 +124,9 @@ impl PathOfBuilding {
// register API functions
api::register_globals(&lua)?;
// register Rust port of `luautf8` as module
lua.register_module("lua-utf8", luautf8::create_module(&lua)?)?;
Ok(lua)
}
+3
View File
@@ -136,6 +136,9 @@ impl Subscript {
let lua = unsafe { Lua::unsafe_new() };
append_lua_package_dir(&lua, &script_dir.join("lua"))?;
// register Rust port of `luautf8` as module
lua.register_module("lua-utf8", luautf8::create_module(&lua)?)?;
// register a proxy for each allowed blocking call.
// forwards the call to the main thread and blocks on `reply_rx` until the main thread
// sends back the return values