Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-02-03 | Allow registering and creating custom userdata types that don't necessary ↵ | Alex Orlenko | |
implement the `UserData` trait. This is useful to register 3rd party types that cannot implement `UserData` due to Rust orphan rules. See #206 | |||
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-19 | Rename ToLua/ToLuaMulti -> IntoLua/IntoLuaMulti | 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 | 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-06-28 | Make clippy happy | Alex Orlenko | |
2022-06-06 | More performance optimization (userdata part) | Alex Orlenko | |
2022-03-22 | Fix clippy warnings | Alex Orlenko | |
2022-03-21 | Enable `Lua::inspect_stack` for Luau | Alex Orlenko | |
2022-03-20 | Initial Luau support | Alex Orlenko | |
2021-11-08 | Add `set_nth_user_value` and `get_nth_user_value` to `AnyUserData` | Alex Orlenko | |
with `n` up to 65535 for all Lua versions. | |||
2021-11-04 | Add async meta methods for all Lua except 51 | Alex Orlenko | |
2021-10-12 | Update documentation references | Alex Orlenko | |
Using rustdoc links (see RFC https://github.com/rust-lang/rfcs/pull/1946) | |||
2021-10-05 | Add (hidden) method `UserData::take()` to take out value from userdata | Alex Orlenko | |
2021-09-28 | Update check_stack requirements | Alex Orlenko | |
2021-09-28 | Refactor UserData metatables handling | Alex Orlenko | |
2021-09-28 | Make `protect_lua` as a smart macro to choose from C/closure | Alex Orlenko | |
2021-07-08 | Revert "Make `protect_lua` as a smart macro to choose from C/closure" | Alex Orlenko | |
This reverts commit 84fe5f7f761e5a9669ae00df3f6e48ef2814272c. | |||
2021-07-07 | Make `protect_lua` as a smart macro to choose from C/closure | Alex Orlenko | |
2021-06-30 | Optimize callback creation | Alex Orlenko | |
Attach only one upvalue to callbacks rather than two. This leads to less lookup to Lua registry. | |||
2021-06-21 | Fix clippy warning | Alex Orlenko | |
2021-06-18 | Fix userdata memleak in edge case. | Alex Orlenko | |
This can happen if we unable to push metatable with `__gc` metamethod after pushing userdata. In this case Lua will never execute drop. Instead, we will push metatable first and then userdata. | |||
2021-06-16 | Revert commit ced808d5ab | Alex Orlenko | |
I think this experiment is unsuccessful and does not work well in a module mode with dynamic symbols resolution and mixing between different mlua instances. Overall the Rust bug has been fixed and we can wait for the "C-unwind" feature become stable. | |||
2021-06-03 | Remove `T: Clone` requirement from `add_async_function` | Alex Orlenko | |
2021-06-03 | Implement `UserData` for Rc<RefCell>/Arc<Mutex>/Arc<RwLock> wrappers | Alex Orlenko | |
2021-05-02 | Stack assertions review | Alex Orlenko | |
Other minor code and documentation updates | |||
2021-04-27 | Refactor UserDataCell | Alex Orlenko | |
2021-04-27 | Store nonstatic UserData pointer in self userdata (instead of metatable) | Alex Orlenko | |
2021-04-27 | Fix lua51 scope compilation | Alex Orlenko | |
2021-04-27 | cargo fmt and other minor fixes | Alex Orlenko | |
2021-04-27 | Don't trigger longjmp in rust. | Alex Orlenko | |
Motivation behind this change is upcoming breaking change in Rust compiler v1.52.0 to prevent unwinding across FFI boundaries. https://github.com/rust-lang/rust/pull/76570 The new functionality requires nightly compiler to declare FFI functions as "C-unwind". The fundamental solution is to use C shim to wrap "e" and "m" Lua functions in pcall. Additionally define Rust calling convention to trigger lua_error on Rust behalf. | |||
2021-04-27 | Fix some clippy warnings & minor changes | Alex Orlenko | |
2021-04-27 | Improve/fix scoped UserData drop | Alex Orlenko | |
2021-04-27 | Add `UserDataFields` API. | Alex Orlenko | |
Provide safe access to UserData metatable and allow to define custom metamethods.. | |||
2021-04-16 | Serialize only known (registered) userdata. | Alex Orlenko | |
This reverts commit 7332c6a. Non-static userdata is a special case and can cause segfault if try to serialize it. Now it should be safe, plus I added non-static userdata destructor to generate better error messages in case of accessing destructed userdata. | |||
2021-02-21 | Fix scoped async destruction of partially polled futures | Alex Orlenko | |
2020-12-31 | Update documentation | Alex Orlenko | |
2020-12-14 | Serde support (serialize feature flag) | Alex Orlenko | |
2020-05-15 | Update documentation | Alex Orlenko | |
2020-05-15 | Add clippy check and fix clippy warnings | Alex Orlenko | |
2020-05-11 | Add Lua 5.4 (rc2) support | Alex Orlenko | |
2020-05-11 | Scope support (including async) | Alex Orlenko | |
2020-04-17 | v0.3.0-alpha.1 with async support | Alex Orlenko | |
Squashed commit of the async branch. | |||
2019-11-30 | Add Lua 5.2 support | Alex Orlenko | |
2019-11-04 | Move lua 5.1 support under new "lua51" feature | Alex Orlenko | |
2019-10-17 | Lua 5.1 support | Alex Orlenko | |
2019-09-29 | cargo fmt | Alex Orlenko | |
2019-09-29 | Backport changes from rlua 0.16 (master branch) | Alex Orlenko | |
2018-09-16 | Rename Scope::create_userdata to Scope::create_nonstatic_userdata | kyren | |
avoids clashing with the previous method name to avoid confusion |