Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-06-15 | Update `UserDataMethods::add_async_method()` functions to take `&T` as ↵ | Alex Orlenko | |
second argument instead of cloning `T`. New functions: `UserDataMethods::add_async_method_mut()`, `UserDataMethods::add_async_meta_method_mut()`. | |||
2023-06-07 | Fix setting Luau version number in `_VERSION` env var | Alex Orlenko | |
2023-06-07 | Add `UserDataFields::add_field()` method to add static fields to UserData. | Alex Orlenko | |
Plus `UserDataFields::add_meta_field()` for static meta fields. Fix propagating fields to wrapped UserData types. | |||
2023-06-04 | Don't keep poll function in environment globals when polling async functions. | Alex Orlenko | |
This is redundant after deprecating scoped async. Closes #281 | |||
2023-06-03 | Support getting and setting environment for Lua functions. | Alex Orlenko | |
Closes #218 | |||
2023-05-30 | Update `FunctionInfo` doc and interface | Alex Orlenko | |
2023-05-29 | Refactor application data container. | Alex Orlenko | |
Now it's allowed at the same time mutably and immutably borrow different types. Each value in the application data container is stored in it's own `RefCell` wrapper. Also added new function `Lua::try_set_app_data()`. | |||
2023-05-28 | Include (known) userdata type to Value debug pretty-print | Alex Orlenko | |
2023-05-27 | Add `Value::to_string()` method similar to `luaL_tolstring`. | Alex Orlenko | |
It uses `__tostring` metamethod if set. Closes #279 | |||
2023-05-25 | Set `__name` field in userdata metatable if not provided | Alex Orlenko | |
2023-05-21 | Update to Lua 5.4.6 | Alex Orlenko | |
2023-05-08 | - Allow downcasting error wrapped into `Error::WithContext` | Alex Orlenko | |
- Overwrite error context when called multiple times | |||
2023-05-06 | Add `Value::NULL` constant | Alex Orlenko | |
2023-05-03 | Add `OwnedAnyUserData::take()` | Alex Orlenko | |
2023-04-27 | Update compile tests | Alex Orlenko | |
2023-04-26 | Add OwnedString | Alex Orlenko | |
2023-04-26 | Various improvements for owned types, including: | Alex Orlenko | |
- tests - shortcuts for `OwnedFunction` and `OwnedAnyUserData` | |||
2023-04-23 | Check for reference leak detection only in mlua integratin tests. | Alex Orlenko | |
This is not necessary an error and should not be enforced by default. Fixes #268. | |||
2023-04-14 | Remove unstable feature flag from Function::wrap/wrap_mut/wrap_async | Alex Orlenko | |
2023-04-11 | Add pretty-print to the Debug formatting to Value to Table. | Alex Orlenko | |
This would allow dumping any Lua variable in human readable form. | |||
2023-04-10 | Allow deserializing Lua null into unit(`()`) or unit struct. See #264 | Alex Orlenko | |
2023-04-08 | Add `Thread::set_hook()` function | Alex Orlenko | |
2023-04-05 | Refactor `HookTriggers` (make it const) | Alex Orlenko | |
2023-03-30 | Don't call error handler for memory errors in coroutines | Alex Orlenko | |
2023-03-26 | Support setting memory limit for Lua 5.1/JIT/Luau | Alex Orlenko | |
Other versions already support this feature. Closes #119 | |||
2023-03-25 | Add &Lua to luau interrupt callback (fixes #197) | Alex Orlenko | |
2023-03-19 | Add `Error::downcast_ref()` method | Alex Orlenko | |
2023-03-17 | Tests for the `ErrorContext` trait | Alex Orlenko | |
2023-03-14 | Improve error reporting when calling Rust functions from Lua. | Alex Orlenko | |
In particular new error type `Error::BadArgument` added to help identify bad argument position or name (eg `self` for userdata). | |||
2023-03-12 | Update edition everywhere | Alex Orlenko | |
2023-03-03 | Rename rust_module in tests to test_module | Alex Orlenko | |
This causes warning during compilation | |||
2023-02-26 | Add `UserDataRef` and `UserDataRefMut` types that implement `FromLua` | Alex Orlenko | |
and can be used as accessors to underlying `AnyUserData` type. | |||
2023-02-18 | Add `AnyUserDataExt` trait with auxiliary functions for `AnyUserData` | Alex Orlenko | |
2023-02-12 | Drop `Lua::async_scope` as it's unsound | Alex Orlenko | |
2023-02-12 | Add create_userdata_ref/create_userdata_ref_mut for scope (#206) | Alex Orlenko | |
New methods would allow creating userdata objects from (mutable) reference to a UserData of registered type. | |||
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 | |||
2023-01-06 | Rename `to_lua_err` -> `into_lua_err` | 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-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-21 | Fix module tests | Alex Orlenko | |
2022-12-20 | Remove FromLua impl for UserData+Clone | Alex Orlenko | |
2022-12-19 | Refactor `AsChunk` trait | Alex Orlenko | |
2022-12-18 | Check for invalid args when parsing `#[lua_module(...)]` proc macro | Alex Orlenko | |
2022-12-18 | feat: Support custom name of `lua_module` | rise0chen | |
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. |