Commit Graph

  • fa744b44d8
    Use git url for luau0-src dependency master Michael Pfaff 2023-07-16 14:49:13 -0400
  • 061f84f702
    Turn more comments into doc comments, improve debuggability Michael Pfaff 2023-07-16 14:39:35 -0400
  • 58e5c7b18b
    cargo fmt Michael Pfaff 2023-07-06 13:33:22 -0400
  • 2bbb203050
    Revert "Make Debug interface more user friendly" Michael Pfaff 2023-07-06 13:32:11 -0400
  • 96575e6ab5
    More inline, make some methods and constructors public, add create_c_closure Michael Pfaff 2023-07-06 13:03:53 -0400
  • 11d81209d9
    API changes, inline more often Michael Pfaff 2023-07-05 16:34:17 -0400
  • 925a2816cc
    clippy Alex Orlenko 2023-07-06 00:59:46 +0100
  • b3b8d79446
    Make Debug interface more user friendly - use String instead of Vec<u8> - update docs - unify fields between lua5.x/luau - line numbers are `usize` Alex Orlenko 2023-07-06 00:38:33 +0100
  • 85f17a269d
    Add `Table:is_empty()` function Alex Orlenko 2023-06-26 10:50:18 +0100
  • b169031d4e
    Don't use any metamethods in `Table::sequence_values()` iterator. This is matches with `Table::pair()` iterator. Remove `Table::raw_sequence_values()` iterator. Alex Orlenko 2023-06-26 10:46:59 +0100
  • 399e469328
    Update "async userdata method" benchmark Alex Orlenko 2023-06-21 22:23:43 +0100
  • 1367a033d7
    Don't clone function when doing call_async() Alex Orlenko 2023-06-21 13:14:17 +0100
  • c1168d3ec1
    Refactor `call_async()` functions to use static dispatch outside of traits Alex Orlenko 2023-06-21 12:44:24 +0100
  • b05698d55b
    impl UserData for Rc<T> and Arc<T> where T: UserData Alex Orlenko 2023-06-21 01:30:09 +0100
  • aeacf6cacc
    Remove `allow(dead_code)` from mlua-sys build scripts Alex Orlenko 2023-06-20 23:49:48 +0100
  • 1f0e81c9a1
    Add a dedicated type for Luau vector. Refactor existing implementation and add 4-dimensional vectors support. Alex Orlenko 2023-06-20 12:50:06 +0100
  • c2bfc9ec52
    Implement `PartialEq<[T]>` for tables Alex Orlenko 2023-06-19 23:28:08 +0100
  • 9fdba541e9
    Update `UserDataMethods::add_async_method()` functions to take `&T` as second argument instead of cloning `T`. New functions: `UserDataMethods::add_async_method_mut()`, `UserDataMethods::add_async_meta_method_mut()`. Alex Orlenko 2023-06-15 00:34:41 +0100
  • cf0524aa23
    Use lua_iscfunction instead of lua_getinfo in `Function::environment()` Alex Orlenko 2023-06-08 09:33:48 +0100
  • 03b6dfb2c3
    v0.9.0-beta.3 Alex Orlenko 2023-06-07 14:40:49 +0100
  • cf1cb31150
    mlua_derive: v0.9.0-beta.2 Alex Orlenko 2023-06-07 13:08:02 +0100
  • 7d586f52f2
    mlua-sys: v0.2.0 Alex Orlenko 2023-06-07 13:06:51 +0100
  • e85818e199
    mlua-sys: include luau to luau-codegen feature flag Alex Orlenko 2023-06-07 13:05:16 +0100
  • 16bec29274
    Fix setting Luau version number in `_VERSION` env var Alex Orlenko 2023-06-07 12:35:45 +0100
  • 5a135a331a
    Add `UserDataFields::add_field()` method to add static fields to UserData. Plus `UserDataFields::add_meta_field()` for static meta fields. Fix propagating fields to wrapped UserData types. Alex Orlenko 2023-06-07 12:18:24 +0100
  • e7b712e29f
    Rely on LUA_MINSTACK in callbacks Alex Orlenko 2023-06-06 21:38:45 +0100
  • d5483988d2
    Optimize polling async functions (40% performance win) Alex Orlenko 2023-06-04 20:53:12 +0100
  • 0f5c68dcf8
    Update criterion to 0.5 Alex Orlenko 2023-06-04 18:31:10 +0100
  • 8ab0ccf11c
    Don't keep poll function in environment globals when polling async functions. This is redundant after deprecating scoped async. Closes #281 Alex Orlenko 2023-06-04 02:31:29 +0100
  • 9596f2e9ee
    Fix warning when compiling for lua51 Alex Orlenko 2023-06-03 14:24:34 +0100
  • 1dc32452e6
    Support getting and setting environment for Lua functions. Closes #218 Alex Orlenko 2023-06-03 12:56:49 +0100
  • 9785722d61
    Require environment to be a Table instead of Value in Chunks. In addition to that, `AsChunk::env()` renamed to `AsChunk::environment()`. Alex Orlenko 2023-06-02 23:59:16 +0100
  • c905a34b1d
    (Luau) Set thread globals to main thread globals when resetting the thread Alex Orlenko 2023-06-02 21:13:23 +0100
  • a1089dbf95
    Optimize a bit calling Rust functions from Lua. This is done by reusing upvalue as a captured variable. Also in async functions upvalue is always set (async cannot be scoped) so extra checks removed. Alex Orlenko 2023-05-30 15:15:20 +0100
  • baf25e263f
    Change _mlua to __mlua prefix for internal chunk names Alex Orlenko 2023-05-30 00:36:09 +0100
  • 3abf73dee5
    Update `FunctionInfo` doc and interface Alex Orlenko 2023-05-30 00:33:57 +0100
  • 4adebd31f9
    Update .gitignore Alex Orlenko 2023-05-30 00:33:16 +0100
  • cea2d7fd15
    Refactor application data container. 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()`. Alex Orlenko 2023-05-29 00:07:03 +0100
  • e0224ab159
    Use futures-core and futures-tasks via futures-util. Just to reduce number of dependencies. Alex Orlenko 2023-05-28 10:32:50 +0100
  • 6dee339783
    Use `lua_closethread` in `AsyncThread::drop()` Alex Orlenko 2023-05-28 01:43:15 +0100
  • b674d7906d
    Include (known) userdata type to Value debug pretty-print Alex Orlenko 2023-05-27 23:57:43 +0100
  • 3d7796de55
    clippy Alex Orlenko 2023-05-27 22:08:42 +0100
  • 4306e6e978
    Add `Value::to_string()` method similar to `luaL_tolstring`. It uses `__tostring` metamethod if set. Closes #279 Alex Orlenko 2023-05-26 23:52:48 +0100
  • 68e65a8ffe
    Set `__name` field in userdata metatable if not provided Alex Orlenko 2023-05-25 10:59:46 +0100
  • 2efc637ab9
    Move util into mod and add `short_type_name` function Alex Orlenko 2023-05-25 10:23:52 +0100
  • 22e748557c
    Add new feature flag `luau-jit` to enable experimental Luau codegen backend Alex Orlenko 2023-05-24 19:04:38 +0100
  • 77effb5055
    Refactor `callback_error_ext` Also it makes rust-analyzer happy Alex Orlenko 2023-05-24 00:45:33 +0100
  • 1c66a02878
    Update to Lua 5.4.6 Alex Orlenko 2023-05-21 00:49:35 +0100
  • 1ac98e7d16
    - Allow downcasting error wrapped into `Error::WithContext` - Overwrite error context when called multiple times Alex Orlenko 2023-05-08 23:39:53 +0100
  • bbd2fe06e1
    Use `DeserializeOwned` and remove lifetime from `LuaSerdeExt` trait Alex Orlenko 2023-05-06 23:07:22 +0100
  • d951cb503f
    Add `Value::NULL` constant Alex Orlenko 2023-05-06 22:53:40 +0100
  • bbd2488f79
    Add `OwnedAnyUserData::take()` Alex Orlenko 2023-05-03 23:29:33 +0100
  • 3253ae8f4a
    v0.9.0-beta.2 Alex Orlenko 2023-04-27 23:13:32 +0100
  • fdda0d3724
    Update compile tests Alex Orlenko 2023-04-27 23:06:38 +0100
  • a1d385c7b7
    Add OwnedString Alex Orlenko 2023-04-26 23:17:27 +0100
  • 21b834decc
    Update coverage calculation (exclude mlua-sys) Alex Orlenko 2023-04-26 19:32:14 +0100
  • 4daa7de997
    Various improvements for owned types, including: - tests - shortcuts for `OwnedFunction` and `OwnedAnyUserData` Alex Orlenko 2023-04-26 15:34:15 +0100
  • bd68a155c0
    Replace ManuallyDrop with MaybeUninit Alex Orlenko 2023-04-25 11:48:50 +0100
  • 993aaf44c7
    mlua-sys: v0.1.1 Alex Orlenko 2023-04-24 11:25:22 +0100
  • 54cbc62727
    mlua-sys: use luau-src v0.5.6+luau573 Alex Orlenko 2023-04-24 11:24:32 +0100
  • 2d6a0fdf9c
    Check for reference leak detection only in mlua integratin tests. This is not necessary an error and should not be enforced by default. Fixes #268. Alex Orlenko 2023-04-23 10:03:16 +0100
  • d0cbd32ad2
    (clippy) mlua_derive: don't clone function name Alex Orlenko 2023-04-22 11:07:24 +0100
  • be64706cff
    Missing doc for OwnedAnyUserData Alex Orlenko 2023-04-14 10:29:34 +0100
  • c178bc0a55
    cargo fmt Alex Orlenko 2023-04-14 10:29:12 +0100
  • 0fccdfed5c
    Fix feature flags for owned types Alex Orlenko 2023-04-14 01:09:50 +0100
  • aaf0a5e44a
    Remove usage of crate::ffi (clippy) Alex Orlenko 2023-04-14 00:36:31 +0100
  • 98888883bc
    mlua-sys: clippy Alex Orlenko 2023-04-14 00:31:06 +0100
  • 65e72f39ae
    Remove unstable feature flag from Function::wrap/wrap_mut/wrap_async Alex Orlenko 2023-04-14 00:21:18 +0100
  • f9d1213c4b
    Don't set html_root_url (it's not recommended) Alex Orlenko 2023-04-13 22:44:40 +0100
  • dc10c80e61
    Add documentation url to mlua-sys Alex Orlenko 2023-04-13 22:32:27 +0100
  • 23b9cefdca
    Add missing `doc_cfg` feature to mlua-sys Alex Orlenko 2023-04-13 21:55:37 +0100
  • 15dc0e9f23
    Move ffi module into mlua-sys crate Alex Orlenko 2023-04-12 23:23:34 +0100
  • 0c53e09e30
    Update tarpaulin settings Alex Orlenko 2023-04-12 00:34:26 +0100
  • cdbf04f50c
    Add pretty-print to the Debug formatting to Value to Table. This would allow dumping any Lua variable in human readable form. Alex Orlenko 2023-04-11 20:36:32 +0100
  • ba324b4f54
    Allow deserializing Lua null into unit(`()`) or unit struct. See #264 Alex Orlenko 2023-04-10 01:49:51 +0100
  • 3e83753466
    Add `Thread::set_hook()` function Alex Orlenko 2023-04-08 23:53:48 +0100
  • 288934c82c
    Refactor `HookTriggers` (make it const) Alex Orlenko 2023-04-05 01:02:27 +0100
  • 483bc80fc4
    Add `must_use` to `AsyncThread` Alex Orlenko 2023-04-05 00:23:13 +0100
  • 354c69acc4
    Update README Alex Orlenko 2023-03-30 23:22:01 +0100
  • 6fa0a78ec0
    Prepare v0.9.0-beta.1 Alex Orlenko 2023-03-30 23:18:10 +0100
  • f66932e8d2
    Revert "Rename `Owned*::to_ref()` to `as_ref()`" Alex Orlenko 2023-03-30 22:35:43 +0100
  • da6d5a93c9
    Update rustyline dependency Alex Orlenko 2023-03-30 22:34:41 +0100
  • 1be927bc5d
    Don't call error handler for memory errors in coroutines Alex Orlenko 2023-03-30 17:29:57 +0100
  • 0848ddcdf7
    Clippy Alex Orlenko 2023-03-28 20:53:22 +0100
  • e182d474e0
    More user-friendly error message about missing value for `name` attribute in module macro Update the `[lua_module]` doc Alex Orlenko 2023-03-28 14:41:21 +0100
  • 0f937b0a03
    Switch to syn 2.0 Alex Orlenko 2023-03-28 13:56:59 +0100
  • cd9fc1d08f
    Update Error doc Alex Orlenko 2023-03-26 20:58:43 +0100
  • d9aac08b81
    Support setting memory limit for Lua 5.1/JIT/Luau Other versions already support this feature. Closes #119 Alex Orlenko 2023-03-26 00:02:35 +0000
  • 9c1669020b
    Clippy Alex Orlenko 2023-03-25 23:38:57 +0000
  • 742307a267
    Add &Lua to luau interrupt callback (fixes #197) Alex Orlenko 2023-03-25 16:30:31 +0000
  • 781ded573a
    Seal LuaSerdeExt/TableExt/AnyUserDataExt Alex Orlenko 2023-03-19 02:38:21 +0000
  • 6a647f58be
    Add `Error::downcast_ref()` method Alex Orlenko 2023-03-19 00:22:51 +0000
  • 4bc6501d2e
    Tests for the `ErrorContext` trait Alex Orlenko 2023-03-17 01:31:07 +0000
  • 8d80321738
    Add `ErrorContext` extension trait to attach additional context to `Error` Alex Orlenko 2023-03-17 01:20:57 +0000
  • a0d37fd182
    Rename `error` to `cause` in `Error::BadArgument` Alex Orlenko 2023-03-16 23:48:54 +0000
  • 03787668fd
    Improve error reporting when calling Rust functions from Lua. In particular new error type `Error::BadArgument` added to help identify bad argument position or name (eg `self` for userdata). Alex Orlenko 2023-03-14 23:23:46 +0000
  • 3059f82552
    Update README and CHANGELOG Alex Orlenko 2023-03-12 23:51:37 +0000
  • 22fbcfd9fb
    Update edition everywhere Alex Orlenko 2023-03-12 01:03:31 +0000
  • 304880bfd1
    Fast metatable check for Lua::push_userdata_ref Alex Orlenko 2023-03-10 09:59:22 +0000
  • 33c276d0b4
    Optimize userdata methods call when __index and fields_getters are nil Alex Orlenko 2023-03-04 11:58:34 +0000