summaryrefslogtreecommitdiff
path: root/mlua-sys/src/lua54/lua.rs
AgeCommit message (Collapse)Author
2024-01-20Expose internal `POLL_PENDING` constant (hidden)Alex Orlenko
2024-01-03mlua-sys: always inline lua_errorAlex Orlenko
2023-12-06Correct C return type for lua_errorPeter Marheine
The definition of lua_error in all of Lua 5.1 through 5.4 says lua_error returns int, but the Rust definition of the same function treats it as void (because it's known not to return). This causes link-time errors when building for wasm targets because the wasm linker is aware of function return types and errors out if they differ between definition and declaration.
2023-12-06lua54: use changed return type for lua_rawlenPeter Marheine
Lua 5.4 changed lua_rawlen to return lua_Unsigned, versus size_t in earlier versions. Change the C API signature to match, and add a wrapper function with the same name that maintains a stable Rust API by casting to usize.
2023-07-22Use c-unwind ABI (Rust 1.71+)Alex Orlenko
2023-07-21Support LUA_LIB_NAME in module mode for windows.Alex Orlenko
In this mode we will link with the particular lua library.
2023-07-20Support vendored module mode for windows (raw-dylib linking)Alex Orlenko
This is requires Rust 1.71+
2023-05-21Update to Lua 5.4.6Alex Orlenko
2023-04-12Move ffi module into mlua-sys crateAlex Orlenko