summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-08-12Update to Luau 0.590Alex Orlenko
2023-08-07Add new option `sort_keys` to `DeserializeOptions` (`Lua::from_value` method)Alex Orlenko
Closes #303
2023-08-07Hide clippy warning converting i32 to i32Alex Orlenko
2023-08-06Cosmetic changes for the Value conversions + add testsAlex Orlenko
2023-08-06Change `Table::raw_len()` output type to `usize`.Alex Orlenko
2023-08-06Add helper functions to Value (#299)Akase Cho
Add helper functions to `Value`
2023-08-03Faster table opsAlex Orlenko
2023-08-03Add table get/set benchmarkAlex Orlenko
2023-08-03Fastpath IntoLua/FromLua for StdString and &strAlex Orlenko
This includes direct push to Lua stack and getting value from Lua stack.
2023-08-03Faster `Function::call()`Alex Orlenko
2023-08-03Optimize async functionality:Alex Orlenko
Rewrite using the new `push_into_stack()`/`from_stack()` methods. Also store thread state (pointer) in `Thread` struct to avoid getting it every time. Async userdata methods still need to have arguments stored in ref thread as stack is empty on every poll().
2023-08-01impl Drop for MultiValueAlex Orlenko
This action would automatically return container to the pool on drop (instead of doing it manually)
2023-07-31New (unsafe and private) methods for IntoLua/FromLua traits: ↵Alex Orlenko
push_into_stack/from_stack. They allow to push Value directly to Lua stack or get Value from Lua stack without creating MultiValue container. This approach is a big optimization opportunity and already demonstrated great results. For instance, obtaining `&T` for userdata methods are now work directly from stack value without copying to auxiliary stack.
2023-07-31Update module entrypoint function.Alex Orlenko
Return c_int instead of Result (and avoid potential panic on Rust side).
2023-07-31Minor fixes in v0.9 release notesAlex Orlenko
2023-07-28v0.9.0-rc.3Alex Orlenko
2023-07-28mlua-sys: v0.3.1Alex Orlenko
2023-07-28Update Luau compiler optionsAlex Orlenko
2023-07-28Fix warning when compiling chunk testsAlex Orlenko
2023-07-28Bump luau-src to v0.6.0+luau588Alex Orlenko
This release has better codegen support (and breaking changed unfortunately)
2023-07-28Fix link to v0.9 release notes in READMEAlex Orlenko
2023-07-28v0.9.0-rc.2Alex Orlenko
2023-07-28mlua-sys: v0.3.0Alex Orlenko
2023-07-28mlua_derive: v0.9.0-rc.2Alex Orlenko
2023-07-28Update v0.9 release notesAlex Orlenko
2023-07-28Add v0.9 release notesAlex Orlenko
Prepare v0.9-rc.2 release
2023-07-27Move `impl IntoLua for WrappedFunction` to the `function.rs` fileAlex Orlenko
2023-07-27Fix `AsChunk` trait to support capturing wrapped Lua types ↵Alex Orlenko
(`AnyUserData::wrap()` and `Function::wrap()`). This is a breaking change, the `'lua` lifetime used to in environment moved to the trait declaration.
2023-07-26Fix lua51/52 case in userdata testsAlex Orlenko
2023-07-26Set `__type` metatable field for Luau instead of `__name`.Alex Orlenko
Other Lua versions continue to use `__name` field. Also make `MetaMethod` enum non-exhaustive (and add `Type` variant) Closes #295
2023-07-22Use c-unwind ABI (Rust 1.71+)Alex Orlenko
2023-07-22Fix loading luau code starting with \tAlex Orlenko
2023-07-21Do not rely on vendored feature when testing luajit memory limitAlex Orlenko
2023-07-21Pin lua-src and luajit-src versionsAlex Orlenko
2023-07-21Use giraffate/clippy-actionAlex 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-20Make `module` and `vendored` features mutually exclusiveAlex Orlenko
2023-07-20Update READMEAlex Orlenko
2023-07-20Drop openresty specific luajit extensionsAlex Orlenko
2023-07-20Support vendored module mode for windows (raw-dylib linking)Alex Orlenko
This is requires Rust 1.71+
2023-07-16Add `#[derive(FromLua)]` macro to opt-in into `FromLua<T> where T: 'static + ↵Alex Orlenko
Clone` (userdata type). Future macro implementations will allow making T from Lua tables/other values. Relates to #291.
2023-07-11v0.9.0-rc.1Alex Orlenko
2023-07-11Rename `UserDataRegistrar` to `LuaUserDataRegistry`Alex Orlenko
2023-07-11Use pretty format in the repl exampleAlex Orlenko
2023-07-11Use `__tostring` if `__name` is not available when pretty printing userdata ↵Alex Orlenko
values
2023-07-11Make `Lua::push_value()` and `Lua::pop_value()` public (but hidden from the ↵Alex Orlenko
docs). Can be useful for low-level intergration with mlua values. Also closes #215.
2023-07-11Add back `Table::raw_sequence_values()` with deprecation noticeAlex Orlenko
2023-07-11Revert `Add error-send feature`Alex Orlenko
2023-07-11v0.9.0-rc.1Alex Orlenko
2023-07-11mlua-sys: v0.2.1Alex Orlenko