Commit Graph

  • 3aac7131ee Add Iter metamethod for Luau (available from 0.526) Alex Orlenko 2022-05-09 14:34:10 +01:00
  • 1807fa789c Don't require Lua sources for modules in build system Alex Orlenko 2022-05-07 16:20:57 +01:00
  • 7db7526a08 Update to Luau 0.526 Alex Orlenko 2022-05-07 02:08:50 +01:00
  • bea9b0f8b5 Assert stack for Luau in callback_error_ext when operating on a cached wrapped failure. Should solve #153. Alex Orlenko 2022-04-27 00:16:31 +01:00
  • 32a3f478bd v0.8.0-beta.4 v0.8.0-beta.4 Alex Orlenko 2022-04-25 23:18:27 +01:00
  • 294b3b7aae Bump mlua_derive to 0.8.0-beta.1 Alex Orlenko 2022-04-19 23:55:16 +01:00
  • b0dabe9d3c Add parking_lot feature to README Alex Orlenko 2022-04-19 23:50:11 +01:00
  • 5133a9837a Add Function::info() to get information about functions. Closes #149 and #7. Alex Orlenko 2022-04-17 22:43:41 +01:00
  • 790df77965 Fix "unused" warning in tests Alex Orlenko 2022-04-17 22:39:21 +01:00
  • a62636fde0 More parking_lot ci tests Alex Orlenko 2022-04-17 17:29:51 +01:00
  • d77c0e3b8d Merge pull request #147 from sondr3/parking_lot Alex Orlenko 2022-04-17 01:38:03 +01:00
  • 3904213ed0 Faster lua_rotate for Lua < 5.3 Alex Orlenko 2022-04-17 01:02:40 +01:00
  • a5ce0c1409 Add parking_lot dependency and feature Sondre Aasemoen 2022-04-15 17:50:17 +02:00
  • dba76f3994 Merge pull request #145 from zh-jq/patch-v0.7.4 Alex Orlenko 2022-04-15 20:25:32 +01:00
  • 86f506a170 Fix clippy warnings Alex Orlenko 2022-04-14 21:55:36 +01:00
  • d3975bdf30 Refactor AsChunk trait. Remove blanket implementation for T: AsRef<[u8]> Implement for std::path::Path Alex Orlenko 2022-04-14 20:48:00 +01:00
  • 21affdadfd Remove Luau compiler options from Chunk in favour of setting Compiler instance. Add ability to set global Luau compiler used for load all chunks including via require function. Alex Orlenko 2022-04-13 22:59:35 +01:00
  • 17473269f8 Update collectgarbage for Luau: support more options Alex Orlenko 2022-04-13 20:50:50 +01:00
  • 88e3e92009 Define CallbackUpvalue/AsyncCallbackUpvalue as type alises to Upvalue Alex Orlenko 2022-04-13 18:29:51 +01:00
  • 1ba7a409d5 Update compile tests Alex Orlenko 2022-04-13 14:30:52 +01:00
  • ef81f40afa Add tests for static Lua instance Alex Orlenko 2022-04-13 14:30:45 +01:00
  • a018d3b6dc Revert "Remove Lua::into_static/from_static" Alex Orlenko 2022-04-13 13:44:59 +01:00
  • 0215c31a3a Refactor Lua instance structure. The idea is to keep same Lua instance across all calls and only change context inside callbacks. This should solve #104. Alex Orlenko 2022-04-13 13:41:13 +01:00
  • 5cd82d0f6b Refactor main_state handling Alex Orlenko 2022-04-12 10:40:44 +01:00
  • 75697e3a3b support luajit version 2.0.4 zhangjingqiang 2022-04-13 13:36:45 +08:00
  • d1c80be033 Don't cast *const to *mut (for pointers comparison) Alex Orlenko 2022-04-08 22:51:33 +01:00
  • a8fef51e86 (minor) Fix capturing variables in protect_lua closures Alex Orlenko 2022-04-08 20:13:38 +01:00
  • 28a063c1e5 Implement Hash for Lua String Alex Orlenko 2022-04-08 16:43:09 +01:00
  • 55fac90a74 Fix Luau documentation in docs.rs Enable Lua::gc_inc for Luau Mark debug module as safe for Luau Alex Orlenko 2022-04-08 15:41:16 +01:00
  • 70d287cf9f Don't pass Lua handler to interrupt callback (Luau) as it's not safe. Optimize callback_error_ext to check stack only before allocating a new WrappedFailure. Alex Orlenko 2022-04-08 10:45:28 +01:00
  • d607039a31 v0.8.0-beta.3 v0.8.0-beta.3 Alex Orlenko 2022-04-03 23:38:41 +01:00
  • 0ea65a2985 Fix doc test Alex Orlenko 2022-04-03 03:12:37 +01:00
  • 8c333354d3 Update Luau to 0.521 Alex Orlenko 2022-03-31 23:28:37 +01:00
  • f63f147265 Add set_mutable_globals to Luau compiler Alex Orlenko 2022-03-31 20:35:52 +01:00
  • 595dc3e95f Move some Luau functionality to a new module Immplement native "vector" function to construct vectors Alex Orlenko 2022-03-31 19:31:37 +01:00
  • ac28c8d8d2 Add vector_lib/vector_ctor options to Luau Compiler (hidden) Alex Orlenko 2022-03-31 19:05:19 +01:00
  • d5315da8d1 Fix tests Alex Orlenko 2022-03-31 12:23:21 +01:00
  • a7cc7f328a Increase minimum lua-src version to 544 Alex Orlenko 2022-03-31 00:09:52 +01:00
  • 516f01ed44 Increase internal caches size Alex Orlenko 2022-03-31 00:07:05 +01:00
  • 4492a20bbc Make LuaHook as Fn instead of FnMut to remove Mutex and improve performance Alex Orlenko 2022-03-30 23:55:34 +01:00
  • 595bc3a2b3 Support Luau interrupts (closes #138) Alex Orlenko 2022-03-30 22:01:06 +01:00
  • 87c10ca93d Sandboxing support Alex Orlenko 2022-03-28 23:42:35 +01:00
  • f75b7b7879 Remove Lua::into_static/from_static Alex Orlenko 2022-03-26 00:30:57 +00:00
  • de1cfa070f v0.8.0-beta.2 v0.8.0-beta.2 Alex Orlenko 2022-03-25 00:27:07 +00:00
  • ec1fa04085 Update docs Alex Orlenko 2022-03-25 00:23:35 +00:00
  • 714dd6249f Enable Thread::reset for Luau Alex Orlenko 2022-03-23 21:13:48 +00:00
  • 5089dd73c0 Update luau-src to 0.2.1 to fix performance issues related to longjmp Alex Orlenko 2022-03-23 01:25:27 +00:00
  • 9533f08d3a Use lua_xpush for Luau Alex Orlenko 2022-03-23 01:24:54 +00:00
  • 0a3b65af88 Support readonly table attribute (luau) Alex Orlenko 2022-03-22 21:33:29 +00:00
  • 3a9c8c2da2 Add Luau vector datatype support Alex Orlenko 2022-03-22 20:52:10 +00:00
  • 952dae1de5 v0.8.0-beta.1 v0.8.0-beta.1 Alex Orlenko 2022-03-22 01:01:18 +00:00
  • c88e5f0c4b Update README Alex Orlenko 2022-03-22 00:49:50 +00:00
  • 55b778c68b Fix clippy warnings Alex Orlenko 2022-03-22 00:18:42 +00:00
  • c6d3727171 Prepare v0.8.0-beta.1 Alex Orlenko 2022-03-21 01:37:08 +00:00
  • 4e0ba6559e Add require function to Luau Alex Orlenko 2022-03-20 20:01:04 +00:00
  • 405cff5d49 Move StaticUserData* implementation from lua module to the new userdata_impl Alex Orlenko 2022-03-19 22:12:43 +00:00
  • 37cddc6b1c Replace compat53_countlevels with lua_stackdepth for Luau Alex Orlenko 2022-03-19 21:18:56 +00:00
  • 2c069f7033 Update to luau 0.519 Alex Orlenko 2022-03-19 21:11:10 +00:00
  • 1e61d1dadc Return binary chunks support in safe mode. Lua has many ways to load binary bytecode and this restriction was easy to bypass. Alex Orlenko 2022-03-19 20:33:53 +00:00
  • 32124b31a0 Move chunks structs to a new module. Add Luau Compiler interface to compile sources. Alex Orlenko 2022-03-01 12:29:43 +00:00
  • 3e5f8e7bb8 Enable Lua::inspect_stack for Luau Alex Orlenko 2022-02-25 23:51:51 +00:00
  • cab92f4ea2 Update luaL_traceback for Luau Alex Orlenko 2022-02-25 21:21:45 +00:00
  • fa99f62a99 Fix __index and __newindex wrappers for Luau Alex Orlenko 2022-03-21 01:06:31 +00:00
  • eed7b1f3af More ffi module refactoring Alex Orlenko 2022-02-25 15:08:56 +00:00
  • c322e028e2 Initial Luau support Alex Orlenko 2022-02-19 14:15:15 +00:00
  • 6dc127f4eb Refactor ffi module Initial Luau support work Alex Orlenko 2022-02-14 18:41:18 +00:00
  • d4f8dce597 Fix async userdata __index, __newindex metamethods Tarik02 2022-03-19 16:07:51 +02:00
  • c85616137a v0.7.4 v0.7.4 Alex Orlenko 2022-03-01 13:03:06 +00:00
  • f52d106a82 Fix "find_dummy" compile error if no lua feature selected Alex Orlenko 2022-03-01 19:59:42 +00:00
  • 10826a7e67 Update create_registry_value doc Alex Orlenko 2022-02-15 19:45:37 +00:00
  • 18c3255c90 Optimize Lua::create_registry_value by reusing previously expired registry keys. Alex Orlenko 2022-02-14 21:20:57 +00:00
  • 6190427f37 Add Lua::replace_registry_value Alex Orlenko 2022-02-14 20:51:24 +00:00
  • 9a5a341e44 Recognize LuaJIT TCDATA type to generate correct panic message. Relates to #127 Should be fixed in a next major release by adding support of TCDATA type. Alex Orlenko 2022-02-12 18:36:26 +00:00
  • dd91ebfbe5 Grow/check Lua stack in unpack Alex Orlenko 2022-02-12 17:09:53 +00:00
  • f9fe869b76 Optimize async calls: Rewrite "unpack" function using C api rather than high level abstraction. Alex Orlenko 2022-01-29 12:39:30 +00:00
  • 6e4033abba Fix tests for Lua 5.4.4 Alex Orlenko 2022-01-29 12:36:09 +00:00
  • c213a85ef0 v0.7.3 v0.7.3 Alex Orlenko 2022-01-19 18:12:45 +00:00
  • 4963cc1b8b Fix cross compilation (bug introduced in 84a174c) Alex Orlenko 2022-01-19 17:42:32 +00:00
  • 418e8fba32 v0.7.2 v0.7.2 Alex Orlenko 2022-01-17 11:12:46 +00:00
  • 08a7e30820 Update README Alex Orlenko 2022-01-17 11:11:56 +00:00
  • 19676bda40 Update CHANGELOG Alex Orlenko 2022-01-16 23:50:26 +00:00
  • 5a06778fbc Always restore original Lua state after creating Future in async call. Fixes #121 Alex Orlenko 2022-01-16 20:57:43 +00:00
  • e33bdddc7a Pass Box wrapped pointer to allocator fn instead of reference Alex Orlenko 2022-01-08 23:00:28 +00:00
  • cfb5d3fd45 Fix clippy warnings Alex Orlenko 2021-12-28 12:23:06 +00:00
  • 84a174c94d Allow pkg-config to omit include paths if they equals to standard. See #114 Alex Orlenko 2021-12-28 11:58:20 +00:00
  • 888b2bbf8d Refactor build/find_normal.rs to include error messages instead of unwrap() Alex Orlenko 2021-12-28 10:18:07 +00:00
  • 386eb7a2b7 v0.7.1 v0.7.1 Alex Orlenko 2021-12-23 19:40:53 +00:00
  • 66c9c633b2 Generate traceback from level 0 (instead of 1) Fixes #112 Alex Orlenko 2021-12-23 17:53:20 +00:00
  • f1e357ce52 Hide (doc) into_static/from_static methods Alex Orlenko 2021-12-01 00:28:08 +00:00
  • be09a1fabf Update lifetimes for few functions in Lua Alex Orlenko 2021-11-30 23:14:08 +00:00
  • 30af045c6f Lift minimum Rust requirement to 1.53+ Alex Orlenko 2021-11-29 10:46:09 +00:00
  • e809640b7e Update CI (switch to ubuntu-20.04 and add luajit52) Alex Orlenko 2021-11-27 13:44:30 +00:00
  • cb3ef20ffc Update README (remove ref to benchmarks) Alex Orlenko 2021-11-27 13:44:09 +00:00
  • 3b6564c02a Update compile tests (messages) Alex Orlenko 2021-11-27 13:42:22 +00:00
  • 89580dd863 v0.7.0 v0.7.0 Alex Orlenko 2021-11-25 18:18:38 +00:00
  • a0554a56d4 Update dependencies Alex Orlenko 2021-11-25 18:12:29 +00:00
  • 2fee3e7891 Update docs Alex Orlenko 2021-11-25 15:43:28 +00:00
  • 9f073ad879 Update README & CHANGELOG Alex Orlenko 2021-11-25 13:32:13 +00:00
  • 1b74c89509 More performance optimizations Alex Orlenko 2021-11-25 11:16:12 +00:00
  • 440862de38 Update tests Alex Orlenko 2021-11-23 19:12:27 +00:00