summaryrefslogtreecommitdiff
path: root/src/userdata.rs
AgeCommit message (Collapse)Author
2021-11-04Publish `AnyUserData::take`Alex Orlenko
2021-11-04Add luajit52 support (LuaJIT with partial compatibility with Lua 5.2)Alex Orlenko
2021-11-04Add async meta methods for all Lua except 51Alex Orlenko
2021-10-12Update documentation referencesAlex Orlenko
Using rustdoc links (see RFC https://github.com/rust-lang/rfcs/pull/1946)
2021-10-05Add (hidden) method `UserData::take()` to take out value from userdataAlex Orlenko
2021-09-28Refactor UserData metatables handlingAlex Orlenko
2021-09-28Add inline attributes to few hot funcsAlex Orlenko
2021-08-04Update documentation about `FromLua` for UserData. Closes #64Alex Orlenko
2021-07-13Replace custom `UserDataRef(Mut)` with standard `Ref`(Mut)Alex Orlenko
2021-07-11UserData improvements:Alex Orlenko
1) Optimize `make_userdata` call 2) Refactor `UserDataWrapped` and make it enum
2021-06-16Revert commit ced808d5abAlex 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-03Remove `T: Clone` requirement from `add_async_function`Alex Orlenko
2021-06-03Add `__ipairs` metamethod (again) for Lua 5.2 onlyAlex Orlenko
2021-06-03Implement `UserData` for Rc<RefCell>/Arc<Mutex>/Arc<RwLock> wrappersAlex Orlenko
2021-05-10Fix spellingAlex Orlenko
2021-05-05Add `Thread::reset()` for luajit/lua54Alex Orlenko
2021-05-04Remove deprecated `AnyUserData::has_metamethod()`Alex Orlenko
2021-05-02Stack assertions reviewAlex Orlenko
Other minor code and documentation updates
2021-04-27Refactor UserDataCellAlex Orlenko
2021-04-27More testsAlex Orlenko
2021-04-27Add more checks for destructed userdata in AnyUserDataAlex Orlenko
2021-04-27cargo fmt and other minor fixesAlex Orlenko
2021-04-27Don'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-27Fix some clippy warnings & minor changesAlex Orlenko
2021-04-27Make MetaMethod::name() publicAlex Orlenko
Tests for UserDataMetatable::pairs()
2021-04-27Improve/fix scoped UserData dropAlex Orlenko
2021-04-27Add `UserDataFields` API.Alex Orlenko
Provide safe access to UserData metatable and allow to define custom metamethods..
2020-12-31Update documentationAlex Orlenko
2020-12-14Serde support (serialize feature flag)Alex Orlenko
2020-06-06Add `has_metamethod` to `AnyUserData`Alex Orlenko
2020-05-15Update documentationAlex Orlenko
2020-05-12Add MetaMethod::Close to support Lua 5.4 to-be-closed variablesAlex Orlenko
2020-05-11Add Lua 5.4 (rc2) supportAlex Orlenko
2020-05-11Hide Lua "Send" capability under the optional "send" feature flagAlex Orlenko
2020-05-11Add Send capability to LuaAlex Orlenko
2020-05-11Bind Futures lifetimes to 'lua rather than 'static.Alex Orlenko
Fix async examples.
2020-04-17v0.3.0-alpha.1 with async supportAlex Orlenko
Squashed commit of the async branch.
2020-01-25Remove `__ipairs` metamethod deprecated in lua 5.3 and not available by defaultAlex Orlenko
2020-01-07Implement PartialEq trait for Value (and subtypes)Alex Orlenko
Add equals() method to compare values optionally invoking __eq.
2019-11-30Add pair and ipair metamethods support (lua 5.2/5.3 only)Alex Orlenko
2019-11-30Add Lua 5.2 supportAlex Orlenko
2019-11-04Move lua 5.1 support under new "lua51" featureAlex Orlenko
2019-11-04Fix examples and docsAlex Orlenko
2019-10-17Lua 5.1 supportAlex Orlenko
2019-10-01Rename to mluaAlex Orlenko
2019-09-29Backport changes from rlua 0.16 (master branch)Alex Orlenko
2018-10-01Allow non-utf8 Lua source in load / exec / evalkyren
2018-09-04code re-org have slightly less pub(crate) itemskyren
2018-09-04Initial design for non-'static scoped userdatakyren
Uses the same UserData trait, and should at least in theory support everything that 'static UserData does, except that any functions added that rely on AnyUserData are pretty much useless. Probably pretty slow and I'm not sure how to make it dramatically faster, which is a shame because generally when you need non'-static userdata you might be creating it kind of a lot (if it was long-lived, it would probably be 'static). Haven't added tests yet, will do that next.
2018-08-05format with up-to-date rustfmtkyren