summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-01-10v0.9.4Alex Orlenko
2024-01-10Include skip_memory_check code only when the corresponding attribute set for ↵Alex Orlenko
module
2024-01-10Fix edge case when loading many-in-one module from thread without using its ↵Alex Orlenko
state. If Lua previously been initialized in main thread and then new module was loaded from thread we reuse old state which confuses Lua loader.
2024-01-08v0.9.3Alex Orlenko
2024-01-08Update README & CHANGELOGAlex Orlenko
2024-01-06Fix docsrs attr for Thread::resetAlex Orlenko
2024-01-06Fix (nightly) warning in docAlex Orlenko
2024-01-06Run tests for wasm32-unknown-emscriptenAlex Orlenko
2024-01-03Fix lua53/lua54 `luaL_error` definition (for wasm32)Alex Orlenko
2024-01-03Bump rustyline dependencyAlex Orlenko
2024-01-03Update minimal lua(u) versions (needed for wasm32)Alex Orlenko
2024-01-03Panic when try to build for wasm32 without vendored feature (except luau)Alex Orlenko
2024-01-03mlua-sys: always inline lua_errorAlex Orlenko
2024-01-03mlua-sys: fix Lua 5.2 `lua_sethook` definitionAlex Orlenko
2023-12-27Update lauxlib.rs (#351)Aymen-Hakim
lua54 in lua53 src.
2023-12-14Add lua emscripten support (#338)ByteDream
2023-12-13Merge pull request #337 from tari/emscripten-supportAlex Orlenko
Fix build for emscripten target
2023-12-10Update Cargo.toml (#342)Joel Natividad
2023-12-08Merge pull request #339 from eatradish/fix-loongarch64-buildAlex Orlenko
Add loongarch64 architecture support
2023-12-08Add loongarch64 architecture supporteatradish
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-12-03Don't clone function name when calling async userdata methodAlex Orlenko
2023-12-02(async) Move "pending" poll value from env to poll_future() resultsAlex Orlenko
2023-12-01Remove locals from __mlua_async_poll helperAlex Orlenko
2023-12-01Faster `Function::call()` for lua51/jit/luauAlex Orlenko
2023-11-21v0.9.2Alex Orlenko
2023-11-20Update Luau+windows `require` dylib failed testAlex Orlenko
2023-11-20Integrate Luau package into mlua api.Alex Orlenko
Eg. `Lua::load_from_std_lib` with `StdLib::PACKAGE` is now supported for Luau.
2023-11-16Include luau to ci module testsAlex Orlenko
2023-11-16Support binary modules for Luau on cfg(unix)Alex Orlenko
2023-11-16Rewrite Luau `require` function to support module loaders.Alex Orlenko
Also add `package` library with `path`/`loaded`/`loaders`.
2023-11-16Support LuaJIT cdata type (produced by ffi module)Alex Orlenko
2023-11-16Support Luau buffer type and and library.Alex Orlenko
Buffer is an object that represents a fixed-size mutable block of memory and added to Luau 0.601. See https://luau-lang.org/library#buffer-library for more details.
2023-10-24Add lua_newuserdata_t helper to mlua-sys/luauAlex Orlenko
2023-10-24Remove MemoryState from ExtraData and retrieve using lua_getallocf (recently ↵Alex Orlenko
added to Luau)
2023-10-12Fix typo in `table_traversal_sequence` becnhmarkAlex Orlenko
2023-10-12Optimize Table serialization (faster traversal)Alex Orlenko
2023-10-12Optimize iterating over array part of tableAlex Orlenko
2023-10-12Add "table traversal sequence" benchmarkAlex Orlenko
2023-10-10Add `Table::for_each` method for fast (faster than `pairs()`) table pairs ↵Alex Orlenko
traversal.
2023-10-10Optimize table traversal (`pairs` iterator).Alex Orlenko
2023-10-10Add table traversal benchmarkAlex Orlenko
2023-10-10Add serde benchmarkAlex Orlenko
2023-09-29Update luajit (vendored) to 210.5.0Alex Orlenko
This includes switch from openresty's to vanilla luajit
2023-09-13Update github CI actions/checkout to v4Alex Orlenko
2023-08-27rustfmt 1.72+Alex Orlenko
2023-08-27Fix setting userdata (static) fields when it has __index metamethod/function.Alex Orlenko
Closes #312
2023-08-24v0.9.1Alex Orlenko
2023-08-24Fix an edge case when using invalidated (relative) userdata index after ↵Alex Orlenko
processing varargs. This causes Lua API correctness check assertion in debug mode. Fixes #311.