Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-11-16 | Support binary modules for Luau on cfg(unix) | Alex Orlenko | |
2023-11-16 | Rewrite Luau `require` function to support module loaders. | Alex Orlenko | |
Also add `package` library with `path`/`loaded`/`loaders`. | |||
2023-11-16 | Support LuaJIT cdata type (produced by ffi module) | Alex Orlenko | |
2023-11-16 | Support Luau buffer type and and library. | Alex Orlenko | |
Buffer is an object that represents a fixed-size mutable block of memory and added to Luau 0.601. See https://luau-lang.org/library#buffer-library for more details. | |||
2023-10-10 | Add `Table::for_each` method for fast (faster than `pairs()`) table pairs ↵ | Alex Orlenko | |
traversal. | |||
2023-10-10 | Optimize table traversal (`pairs` iterator). | Alex Orlenko | |
2023-09-29 | Update luajit (vendored) to 210.5.0 | Alex Orlenko | |
This includes switch from openresty's to vanilla luajit | |||
2023-08-27 | rustfmt 1.72+ | Alex Orlenko | |
2023-08-27 | Fix setting userdata (static) fields when it has __index metamethod/function. | Alex Orlenko | |
Closes #312 | |||
2023-08-24 | Fix an edge case when using invalidated (relative) userdata index after ↵ | Alex Orlenko | |
processing varargs. This causes Lua API correctness check assertion in debug mode. Fixes #311. | |||
2023-08-20 | impl IntoLuaMulti for StdResult<(), E> | Alex Orlenko | |
2023-08-15 | Update non-static (scoped) userdata: | Alex Orlenko | |
- Use the new stack api - Support static fields constructor - Better error messages (on bad arguments) | |||
2023-08-14 | Add `Scope::create_any_userdata()` | Alex Orlenko | |
2023-08-12 | Add `Lua::set_vector_metatable()` method (unstable) | Alex Orlenko | |
2023-08-12 | Add `OwnedThread` type (unstable) | Alex Orlenko | |
2023-08-12 | Support options for `Value::serialize()` implementation | Alex Orlenko | |
To match `lua.from_value_with()` functionality. | |||
2023-08-07 | Add new option `sort_keys` to `DeserializeOptions` (`Lua::from_value` method) | Alex Orlenko | |
Closes #303 | |||
2023-08-06 | Cosmetic changes for the Value conversions + add tests | Alex Orlenko | |
2023-08-03 | Optimize 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-07-28 | Update Luau compiler options | Alex Orlenko | |
2023-07-28 | Fix warning when compiling chunk tests | Alex Orlenko | |
2023-07-27 | Fix `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-26 | Fix lua51/52 case in userdata tests | Alex Orlenko | |
2023-07-26 | Set `__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-22 | Use c-unwind ABI (Rust 1.71+) | Alex Orlenko | |
2023-07-22 | Fix loading luau code starting with \t | Alex Orlenko | |
2023-07-21 | Do not rely on vendored feature when testing luajit memory limit | Alex Orlenko | |
2023-07-20 | Make `module` and `vendored` features mutually exclusive | Alex Orlenko | |
2023-07-20 | Drop openresty specific luajit extensions | Alex Orlenko | |
2023-07-20 | Support vendored module mode for windows (raw-dylib linking) | Alex Orlenko | |
This is requires Rust 1.71+ | |||
2023-07-16 | Add `#[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-11 | Rename `UserDataRegistrar` to `LuaUserDataRegistry` | Alex Orlenko | |
2023-07-10 | Add `Error::runtime()` helper | Alex Orlenko | |
2023-07-10 | Add `AnyUserData::wrap()` to more easy way of creating _any_ userdata in Lua. | Alex Orlenko | |
This is similar to `Function::wrap()`. | |||
2023-07-10 | Drop futures-timer dev-dependency | Alex Orlenko | |
2023-07-10 | Add new module attribule `skip_memory_check` to improve performance | Alex Orlenko | |
in module mode (by skipping memory allocations check) with extra risks. | |||
2023-07-10 | Update compile tests | Alex Orlenko | |
2023-07-09 | Rename `AnyUserData::get_*_user_value` to `AnyUserData::*_user_value`. | Alex Orlenko | |
To be more consistent with function like `Lua::named_registry_value`, `Lua::add_data_ref` and os on. | |||
2023-07-09 | Take &str as function name in `TableExt` and `AnyUserDataExt` traits | Alex Orlenko | |
2023-07-09 | Refactor Lua 5.4 warnings to use &str instead of CStr | Alex Orlenko | |
2023-07-09 | Always set hook on a current Lua context (state) and remove ↵ | Alex Orlenko | |
MainThreadNotAvailable as no longer needed | |||
2023-07-06 | Make Debug interface more user friendly | Alex Orlenko | |
- use String instead of Vec<u8> - update docs - unify fields between lua5.x/luau - line numbers are `usize` | |||
2023-06-26 | Add `Table:is_empty()` function | Alex Orlenko | |
2023-06-26 | Don't use any metamethods in `Table::sequence_values()` iterator. | Alex Orlenko | |
This is matches with `Table::pair()` iterator. Remove `Table::raw_sequence_values()` iterator. | |||
2023-06-21 | impl UserData for Rc<T> and Arc<T> where T: UserData | Alex Orlenko | |
2023-06-20 | Add a dedicated type for Luau vector. | Alex Orlenko | |
Refactor existing implementation and add 4-dimensional vectors support. | |||
2023-06-19 | Implement `PartialEq<[T]>` for tables | Alex Orlenko | |
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. |