Commit Graph

  • 78331ceebe v0.11.1 v0.11.1 Alex Orlenko 2025-07-15 22:43:18 +01:00
  • f945a35cbd Execute metatable destructor in Table::set_metatable at the end of invocation Before this change, destructor was executed shortly after pushing metatable to ref_thread. Alex Orlenko 2025-07-15 19:14:46 +01:00
  • 459edb6816 Always grow aux ref stack considering the reserve Alex Orlenko 2025-07-15 16:32:22 +01:00
  • 00328b0b64 Protect Lua::push_c_function for Lua <5.2 Alex Orlenko 2025-07-15 16:11:31 +01:00
  • 928d94d255 v0.11.0 v0.11.0 Alex Orlenko 2025-07-14 15:33:02 +01:00
  • 583c35a172 Prepare for v0.11.0 Alex Orlenko 2025-07-12 22:47:20 +01:00
  • 1791c599f4 mlua-sys: v0.8.2 Alex Orlenko 2025-07-12 22:46:37 +01:00
  • 1e48817a64 Fix deregistering previously-registered userdata Alex Orlenko 2025-07-12 19:20:15 +01:00
  • 8d219503dd Opt-out from R: MaybeSend in AsyncThread<R> Alex Orlenko 2025-07-12 15:34:04 +01:00
  • 95367855c1 Return AsyncCallFuture<R> instead of opaque impl Future from ObjectLike trait. Alex Orlenko 2025-07-12 15:30:58 +01:00
  • 49389c4aa4 Wrap Function::coverage callback to RefCell (Luau) Alex Orlenko 2025-07-12 13:34:39 +01:00
  • 13dc2b5352 Don't release Lua lock prematurely when when accessing Buffer bytes (Luau) Alex Orlenko 2025-07-12 13:08:33 +01:00
  • 7afbf74128 Add MaybeSend bound to async methods on ObjectLike trait (sealed) Alex Orlenko 2025-07-12 12:45:36 +01:00
  • 06c3bd9d69 Fix serde README section (close #613) Alex Orlenko 2025-07-12 11:50:11 +01:00
  • 1ddaea60ce Bump luau-src to 0.15.4+luau682 Alex Orlenko 2025-07-12 11:27:41 +01:00
  • a653d08768 Simplify Compiler::add_library_constant (combine lib and member) Alex Orlenko 2025-07-09 00:11:46 +01:00
  • 2b6b0144a1 Merge Compiler::set_vector_lib into set_vector_ctor Alex Orlenko 2025-07-08 23:54:27 +01:00
  • 4cfe0be945 Update CHANGELOG Alex Orlenko 2025-07-08 22:44:26 +01:00
  • a9a4814c3c Use StdString for consistency in chunk.rs Alex Orlenko 2025-07-08 22:25:23 +01:00
  • b1f73ec29d Update Luau Compiler methods to better control extra options: - Add add_mutable_global - Add add_userdata_type - Replace set_library_constants with add_library_constant - Add add_disabled_builtin Alex Orlenko 2025-07-08 22:09:24 +01:00
  • 61a2141151 Don't panic when fourth library searcher does not exists. When disabling C modules, we remove the last two searchers (C & C all-in-one). In Pluto the C searches may not exist by design, in this case check that 4th searcher is present before removing it. Closes #530 Alex Orlenko 2025-07-08 13:33:44 +01:00
  • dea38f27a5 Change !cfg!(..) to cfg!(not(..)) for better readability Alex Orlenko 2025-07-08 10:42:15 +01:00
  • 04aaa18dc8 feat: Allow external build scripts to link Lua libraries (#529) Sculas 2025-07-08 11:30:26 +02:00
  • d8455c038a Update CHANGELOG Alex Orlenko 2025-07-08 10:12:03 +01:00
  • ca22ea3be7 Deprecate Debug::curr_line() in favour of Debug::current_line() that returns Option Alex Orlenko 2025-07-08 10:04:32 +01:00
  • cf05593d66 Fix Debug::is_tail_call Alex Orlenko 2025-07-08 09:54:52 +01:00
  • d011a1f851 Update CHANGELOG Alex Orlenko 2025-07-07 23:15:46 +01:00
  • 1ec4661bf9 mlua_derive: v0.11.0 Alex Orlenko 2025-07-07 22:47:40 +01:00
  • d3b2999d2f Remove MaybeSend requirement from Require trait and add to Lua::create_require_function instead Alex Orlenko 2025-07-07 22:37:29 +01:00
  • 72f6536efb Check table requested capacity limits before enabling unprotected mode. Lua tables have limits and can overflow, which must be captured in protected mode. Alex Orlenko 2025-07-07 22:27:53 +01:00
  • 646827a6bb Update Table::set_metatable - Return Err (instead of panic) when trying to change readonly table (Luau) - Slightly optimize performance Alex Orlenko 2025-07-06 11:37:02 +01:00
  • 1882931cd9 Optimize Table::metatable Alex Orlenko 2025-07-06 10:44:46 +01:00
  • c90cac5189 Add Lua::set_globals method to replace global environment. Closes #611 Alex Orlenko 2025-07-06 10:35:07 +01:00
  • c0d839d8d2 Make Thread::state pub (hidden) Alex Orlenko 2025-07-05 22:36:47 +01:00
  • 80471c6dad Optimize AnyUserData::metatable Alex Orlenko 2025-07-05 11:33:11 +01:00
  • 4b9d1cf271 Replace impl ToString with Into<StdString> This is a more canonical way to accept any types of stirng but not arbitrary types that implement Display Alex Orlenko 2025-07-05 11:21:18 +01:00
  • 55c07f3b28 Some minor changes in Luau TextRequirer (comments, naming, etc) Alex Orlenko 2025-07-03 14:42:24 +01:00
  • ef4eabd327 Don't use Value::as_str() internally Alex Orlenko 2025-07-01 22:51:16 +01:00
  • a3302afdc1 Deprecate Value::as_str and Value::as_string_lossy These methods don't follow Rust naming convention, see https://rust-lang.github.io/api-guidelines/naming.html#ad-hoc-conversions-follow-as_-to_-into_-conventions-c-conv Alex Orlenko 2025-07-01 22:32:50 +01:00
  • dfb4e9a668 Fix LuaJIT stack inspection tests Alex Orlenko 2025-07-01 21:40:06 +01:00
  • 92db0f6d3a Fix Lua::inspect_stack callback proto Alex Orlenko 2025-06-30 23:27:55 +01:00
  • a3697ab1db Add Debug::function method to get function running at a given level. Close #607 Alex Orlenko 2025-06-30 23:25:36 +01:00
  • 052740db15 Save lua_State at the moment of constructing Debug instead of resolving it dynamically Alex Orlenko 2025-06-30 22:38:46 +01:00
  • faf547c154 Refactor Lua::inspect_stack and debug interface. It was possible to cause a crash when getting a Debug instance and keeping it while deallocating the Lua stack frames. Alex Orlenko 2025-06-30 12:15:08 +01:00
  • 0de7cd1c7d Don't move or wrap ffi::lua_Debug struct when inspecting stack This can cause a crash if ffi::lua_Debug changed between lua_getstack and lua_getinfo calls. Fixes #610 Alex Orlenko 2025-06-29 11:49:34 +01:00
  • 58953e5635 v0.11.0-beta.3 v0.11.0-beta.3 Alex Orlenko 2025-06-23 22:47:09 +01:00
  • 6406de405d mlua-sys: v0.8.1 Alex Orlenko 2025-06-23 23:22:53 +01:00
  • 727096dd3b Handle OOM error during luau_load (Luau >= 0.679) Alex Orlenko 2025-06-23 23:22:36 +01:00
  • 2445230759 Update CHANGELOG Alex Orlenko 2025-06-23 22:44:36 +01:00
  • 1cd2bdc808 Ignore test_async_require on windows Alex Orlenko 2025-06-23 16:37:46 +01:00
  • f8ed33a2aa Fix tests Alex Orlenko 2025-06-23 16:23:53 +01:00
  • 25955893e0 (Luau Require) Resolve Lua file path relative to the current directory and unrelated to Rust source file location. When a Lua file is required inside a Rust file (in a chunk), we should resolve the Lua file relative to the current directory, instead of relative to the Rust chunk path. The Rust file location is an internal information that does not exist when the compiled binary runs. Fixes #605 Alex Orlenko 2025-06-23 15:49:37 +01:00
  • 3f0c69b70b Fix logic to terminate futures on drop. The underlying Lua thread must stay in yielded state rather than finished. Alex Orlenko 2025-06-17 15:25:21 +01:00
  • 9da98d42c7 Move ref_stack_pop into ExtraData method. Alex Orlenko 2025-06-16 22:25:26 +01:00
  • f539f60987 Fix Function::deep_clone() method (Luau). The lua_clonefunction function can fail (and trigger GC) so we need to return Result instead of allowing longjmp Alex Orlenko 2025-06-16 21:41:29 +01:00
  • aa187e6663 Increase REF_STACK_RESERVE to 3 slots Alex Orlenko 2025-06-16 21:37:16 +01:00
  • ec10bf2a39 Revert 2e0e86dab2 (Update stack_value helper) Alex Orlenko 2025-06-16 21:33:47 +01:00
  • 3ea80b763d cargo fmt Alex Orlenko 2025-06-16 11:21:51 +01:00
  • 2e0e86dab2 Update stack_value helper. It uses zero stack spaces in Luau, and ref thread for WrappedError check in ther Lua versions. Close #597 Alex Orlenko 2025-06-16 11:12:53 +01:00
  • 0ac7aebb27 Update Lua::sandbox doc Alex Orlenko 2025-06-13 15:51:31 +01:00
  • 634e5d4550 Reduce collectgarbage options in sandboxed mode See https://luau.org/sandbox#library Alex Orlenko 2025-06-13 15:46:34 +01:00
  • 05d6c20520 One more mismatched-lifetime-syntaxes Alex Orlenko 2025-06-12 23:44:47 +01:00
  • 63e7cfd31b Satisfy mismatched-lifetime-syntaxes lint (nightly) See rust-lang/rust#141787 Alex Orlenko 2025-06-12 16:30:48 +01:00
  • 9c24c99cbe v0.11.0-beta.2 v0.11.0-beta.2 Alex Orlenko 2025-06-12 14:12:46 +01:00
  • 62f84828f2 Open some doc(hidden) functionality Alex Orlenko 2025-06-12 13:42:26 +01:00
  • 7bc72be7d3 Use serde feature flag instead of serialize. The old one is still supported. Alex Orlenko 2025-06-12 13:35:22 +01:00
  • 2fbbbe4238 Fix minor grammar mistakes in README.md (#591) Ron Tseytlin 2025-06-12 14:57:11 +03:00
  • f00208373e Bump lua-src Alex Orlenko 2025-06-12 00:17:29 +01:00
  • a2dc662a92 Add RawLua::create_table_from (internal) Alex Orlenko 2025-06-11 23:55:06 +01:00
  • caeac2e9a3 Add private app_data container for mlua internal use Alex Orlenko 2025-06-11 22:24:26 +01:00
  • 3d5261640d Fix doc warnings Alex Orlenko 2025-06-06 23:25:36 +01:00
  • b57a6239a6 mlua_derive: v0.11.0-beta.2 Alex Orlenko 2025-06-06 23:20:01 +01:00
  • 031424f6ce Update dev dependencies Alex Orlenko 2025-06-06 23:17:58 +01:00
  • c4c9609ac6 mlua-sys: v0.8.0 Alex Orlenko 2025-06-06 23:09:11 +01:00
  • 6fcd18e434 Update CHANGELOG Alex Orlenko 2025-06-06 16:03:14 +01:00
  • 39cac5699a Add unwinding support (returning an Error) to Luau Require implementation Alex Orlenko 2025-06-06 13:45:57 +01:00
  • e6e1ef014f Some cosmetic changes (Luau "require") Alex Orlenko 2025-06-05 23:08:28 +01:00
  • 942a443592 Bump Lua 5.4 to 5.4.8 Alex Orlenko 2025-06-05 15:02:47 +01:00
  • 65e292dac4 More Luau require tests Alex Orlenko 2025-06-03 23:01:50 +01:00
  • 1a82f83644 Move parking_lot/send_guard from send to userdata-wrappers feature. Related to #553 Alex Orlenko 2025-05-30 23:20:06 +01:00
  • 38fbd08c72 Use luau0-src v0.15.0 (Luau 0.676) Alex Orlenko 2025-05-30 21:56:27 +01:00
  • b3854d2f1d Add '=' prefix to __mlua_bind name Alex Orlenko 2025-05-28 14:03:10 +01:00
  • 00a56b115b Add LuaBorrowedBytes/LuaBorrowedStr to prelude Alex Orlenko 2025-05-28 14:01:35 +01:00
  • 2fefaafaa6 Update "AnyUserData::take" to work on ref thread without need to push into stack. Alex Orlenko 2025-05-28 12:13:34 +01:00
  • 76a8f8cc71 Add __type to Error's userdata metatable. Close #585 Alex Orlenko 2025-05-27 01:31:54 +01:00
  • 13395e9c3d Sync mlua_derive with AsChunk trait Alex Orlenko 2025-05-27 00:54:24 +01:00
  • c61219dd93 Update Luau Require trait (sync with 0.674) Alex Orlenko 2025-05-27 00:12:45 +01:00
  • 2e7c654cfe Make AsChunk trait dyn-friendly Alex Orlenko 2025-05-26 23:29:59 +01:00
  • 31efd0cf72 v0.10.5 v0.10.5 v0.10 Alex Orlenko 2025-05-24 11:58:22 +01:00
  • 6b79e4cd76 Update CHANGELOG Alex Orlenko 2025-05-24 11:54:31 +01:00
  • ee2da72685 Revert default chunk name change Alex Orlenko 2025-05-24 12:29:15 +01:00
  • 6180a528a7 Revert = prefix from __mlua_async_poll Alex Orlenko 2025-05-24 12:22:41 +01:00
  • 69ef08d4d2 Switch back to Luau userdata destructors defined in mlua-sys v0.6 Alex Orlenko 2025-05-24 11:35:25 +01:00
  • f7f04d5180 Revert mlua-sys to v0.6.8 Alex Orlenko 2025-05-24 10:43:18 +01:00
  • e10623d658 Update __mlua_index/__mlua_newindex chunk names Alex Orlenko 2025-05-15 11:03:30 +01:00
  • c3ab89ba66 Fix tests Alex Orlenko 2025-05-13 23:45:46 +01:00
  • fa500639f0 Generate doc for lua_module macro using doc cfg instead of docsrs Alex Orlenko 2025-05-13 21:56:11 +01:00
  • 3d2574a855 Revert "Use c string literal where appropriate" Alex Orlenko 2025-05-24 10:19:19 +01:00
  • 003935db47 Revert "Change Lua library name constants from &str to *const c_char." Alex Orlenko 2025-05-24 10:18:55 +01:00
  • fbed171f90 Revert "Support 52-bit integers for Luau" Alex Orlenko 2025-05-24 10:18:16 +01:00