summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-11-16Support binary modules for Luau on cfg(unix)Alex Orlenko
2023-11-16Rewrite Luau `require` function to support module loaders.Alex Orlenko
Also add `package` library with `path`/`loaded`/`loaders`.
2023-11-16Support LuaJIT cdata type (produced by ffi module)Alex Orlenko
2023-11-16Support 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-10Add `Table::for_each` method for fast (faster than `pairs()`) table pairs ↵Alex Orlenko
traversal.
2023-10-10Optimize table traversal (`pairs` iterator).Alex Orlenko
2023-09-29Update luajit (vendored) to 210.5.0Alex Orlenko
This includes switch from openresty's to vanilla luajit
2023-08-27rustfmt 1.72+Alex Orlenko
2023-08-27Fix setting userdata (static) fields when it has __index metamethod/function.Alex Orlenko
Closes #312
2023-08-24Fix 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-20impl IntoLuaMulti for StdResult<(), E>Alex Orlenko
2023-08-15Update non-static (scoped) userdata:Alex Orlenko
- Use the new stack api - Support static fields constructor - Better error messages (on bad arguments)
2023-08-14Add `Scope::create_any_userdata()`Alex Orlenko
2023-08-12Add `Lua::set_vector_metatable()` method (unstable)Alex Orlenko
2023-08-12Add `OwnedThread` type (unstable)Alex Orlenko
2023-08-12Support options for `Value::serialize()` implementationAlex Orlenko
To match `lua.from_value_with()` functionality.
2023-08-07Add new option `sort_keys` to `DeserializeOptions` (`Lua::from_value` method)Alex Orlenko
Closes #303
2023-08-06Cosmetic changes for the Value conversions + add testsAlex Orlenko
2023-08-03Optimize 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-28Update Luau compiler optionsAlex Orlenko
2023-07-28Fix warning when compiling chunk testsAlex Orlenko
2023-07-27Fix `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-26Fix lua51/52 case in userdata testsAlex Orlenko
2023-07-26Set `__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-22Use c-unwind ABI (Rust 1.71+)Alex Orlenko
2023-07-22Fix loading luau code starting with \tAlex Orlenko
2023-07-21Do not rely on vendored feature when testing luajit memory limitAlex Orlenko
2023-07-20Make `module` and `vendored` features mutually exclusiveAlex Orlenko
2023-07-20Drop openresty specific luajit extensionsAlex Orlenko
2023-07-20Support vendored module mode for windows (raw-dylib linking)Alex Orlenko
This is requires Rust 1.71+
2023-07-16Add `#[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-11Rename `UserDataRegistrar` to `LuaUserDataRegistry`Alex Orlenko
2023-07-10Add `Error::runtime()` helperAlex Orlenko
2023-07-10Add `AnyUserData::wrap()` to more easy way of creating _any_ userdata in Lua.Alex Orlenko
This is similar to `Function::wrap()`.
2023-07-10Drop futures-timer dev-dependencyAlex Orlenko
2023-07-10Add new module attribule `skip_memory_check` to improve performanceAlex Orlenko
in module mode (by skipping memory allocations check) with extra risks.
2023-07-10Update compile testsAlex Orlenko
2023-07-09Rename `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-09Take &str as function name in `TableExt` and `AnyUserDataExt` traitsAlex Orlenko
2023-07-09Refactor Lua 5.4 warnings to use &str instead of CStrAlex Orlenko
2023-07-09Always set hook on a current Lua context (state) and remove ↵Alex Orlenko
MainThreadNotAvailable as no longer needed
2023-07-06Make Debug interface more user friendlyAlex Orlenko
- use String instead of Vec<u8> - update docs - unify fields between lua5.x/luau - line numbers are `usize`
2023-06-26Add `Table:is_empty()` functionAlex Orlenko
2023-06-26Don'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-21impl UserData for Rc<T> and Arc<T> where T: UserDataAlex Orlenko
2023-06-20Add a dedicated type for Luau vector.Alex Orlenko
Refactor existing implementation and add 4-dimensional vectors support.
2023-06-19Implement `PartialEq<[T]>` for tablesAlex Orlenko
2023-06-15Update `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-07Fix setting Luau version number in `_VERSION` env varAlex Orlenko
2023-06-07Add `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.