Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-06 | Rename `to_lua_err` -> `into_lua_err` | Alex Orlenko | |
2023-01-06 | Fix clippy warnings | Alex Orlenko | |
2023-01-06 | Allow deserializing values from serializable UserData using ↵ | Alex Orlenko | |
`Lua::from_value()` method. Closes #240 | |||
2023-01-04 | Better Debug for String | Alex Orlenko | |
2023-01-02 | Add `Table::clear()` method | Alex Orlenko | |
2022-12-30 | Rename wrapped_failure/thread cache to pool | Alex Orlenko | |
2022-12-30 | Rename MultiValue cache to pool | Alex Orlenko | |
2022-12-24 | Refactor `userdata::MetaMethod`. | Alex Orlenko | |
Take `impl AsRef<str>` as name of metamethod (instead of `Into<MetaMethod>`) in UserDataMethods/UserDataFields. Change position of generic args in userdata. | |||
2022-12-22 | Add `Function::wrap`/`Function::wrap_mut`/`Function::wrap_async` to wrap ↵ | Alex Orlenko | |
functions into a type that implements `IntoLua` trait. This is useful to avoid calling `lua.create_function*` every time when `Function` handle is needed. | |||
2022-12-20 | Remove FromLua impl for UserData+Clone | Alex Orlenko | |
2022-12-19 | Rename ToLua/ToLuaMulti -> IntoLua/IntoLuaMulti | Alex Orlenko | |
2022-12-19 | Add "unstable" feature flag. | Alex Orlenko | |
Hide owned types under the new feature flag. Drop OwnedString/OwnedThread types (unlikely they are useful). | |||
2022-12-19 | Refactor `AsChunk` trait | Alex Orlenko | |
2022-12-19 | Refactor LuaInner state | Alex Orlenko | |
Add static_assertions to check for auto traits impl on compilation stage Bump MSRV to 1.63 (required for `Ref::filter_map`) | |||
2022-12-18 | Add ?Sized to PartialEq for Lua String | Alex Orlenko | |
2022-12-18 | Replace `impl AsRef<str>` with simple `&str` | Alex Orlenko | |
2022-12-18 | Use `impl AsRef<str>` for userdata methods/fields instead of generic param. | Alex Orlenko | |
Use `impl AsRef<str>` for module names and named registry values. | |||
2022-12-18 | Do not clear usevalues when taking value out of userdata. | Alex Orlenko | |
It has big performance penalty. Lua GC can collect uservalues when userdata is not referenced anymore. | |||
2022-12-18 | Initial implementation of owned Lua types | Alex Orlenko | |
2022-12-15 | Fix subtraction overflow when calculating index for `MultiValue::get()`. | Alex Orlenko | |
Return `None` instead of panic in debug mode. Fixes #232 | |||
2022-12-09 | Fix lifetime of `DebugNames` in `Debug::names()` and `DebugSource` in ↵ | Alex Orlenko | |
`Debug::source()`. This can cause use-after-free if used wrong. Now invalid code would not compile. Reported in #230 | |||
2022-12-03 | Redefine `_VERSION` for Luau to include version number. | Alex Orlenko | |
https://github.com/khvzak/mlua/discussions/228 | |||
2022-12-03 | Update Luau to 0.555 (luau-src 0.5.0) | Alex Orlenko | |
This version includes inreased LUAI_MAXCSTACK limit (100000) | |||
2022-11-07 | v0.8.6 | Alex Orlenko | |
2022-11-07 | Fix bug when recycled Registry slot can be set to Nil. | Alex Orlenko | |
This can result in allocating the same slot twice and rewriting old value. Lua uses (registry) table length to find next free slot and having Nil in the middle of the table can impact length calculation. With this fix we ensure that Nil values uses a special LUA_REFNIL slot. | |||
2022-10-30 | v0.8.5 | Alex Orlenko | |
2022-10-30 | Better checks and tests when trying to modify a Luau readonly table | Alex Orlenko | |
2022-10-29 | Fix `Table::raw_push` for luau when readonly | Alex Orlenko | |
2022-10-28 | Fix getting caller information from Lua::load | Alex Orlenko | |
2022-10-23 | Add push/pop methods to Table | Alex Orlenko | |
2022-10-23 | Minor serde optimizations | Alex Orlenko | |
2022-10-23 | Optimize `Lua::create_table` to use reference thread if possible | Alex Orlenko | |
2022-10-23 | Optimize `Lua::create_string` to use reference thread if possible | Alex Orlenko | |
2022-10-22 | Optimize tables: | Alex Orlenko | |
- Use reference thread directly for simple cases - Fix issue when calling raw_set on readonly table (Luau) - Add fasttrack methods for get/set/len when metatable is not set | |||
2022-10-22 | Strings optimizations: get access to bytes directly from ref thread. | Alex Orlenko | |
2022-10-22 | Replace Lua::ref_thread_exec | Alex Orlenko | |
2022-10-22 | Update formatting (Lua registry values) | Alex Orlenko | |
2022-10-22 | Check that allocation does not exceed isize::MAX | Alex Orlenko | |
See https://github.com/rust-lang/rust/issues/101899 | |||
2022-10-09 | v0.8.4 | Alex Orlenko | |
2022-10-09 | Fix clippy warnings | Alex Orlenko | |
2022-10-09 | Update push_userdata_ref | Alex Orlenko | |
2022-10-09 | Don't allocate extra byte for userdata (luau) | Alex Orlenko | |
2022-10-08 | Update to Luau 0.548 (luau-src >=0.4) | Alex Orlenko | |
2022-09-05 | Add luaL_setfuncs to preserved functions | Alex Orlenko | |
2022-08-23 | Check if chunk is empty in luaL_loadbufferx for Luau (fixes #200) | Alex Orlenko | |
2022-08-23 | Fix typo in doc comment | Trisha | |
2022-08-02 | v0.8.3 | Alex Orlenko | |
2022-08-02 | Fallback to Lua internal allocator if unable to create Lua VM with Rust one. | Alex Orlenko | |
This should fix #194 | |||
2022-08-01 | Fix Lua assertion when inspecting another thread stack. | Alex Orlenko | |
The thread can be dead and it's not safe to call __tostring metamethod (if present) on error object. Fixes #195 | |||
2022-08-01 | Check that Lua state is non-null in init_from_ptr() | Alex Orlenko | |