Commit Graph

  • c10718ed2f Update CHANGELOG Alex Orlenko 2026-01-27 16:04:33 +00:00
  • ec2ce3620f Some final Lua 5.5 updates Alex Orlenko 2026-01-27 16:00:49 +00:00
  • 71757003c7 mlua-sys: v0.10.0 Alex Orlenko 2026-01-27 15:56:53 +00:00
  • 6bb7f09927 Don't use luaL_typename to get a static type name in Luau. Alex Orlenko 2026-01-27 14:07:47 +00:00
  • e67ae7f0de Make RawLua::{push,push_value,pop_value} public Alex Orlenko 2026-01-27 12:17:40 +00:00
  • 8c1535c27b cargo fmt Alex Orlenko 2026-01-27 12:14:50 +00:00
  • fd245daa6f Expose RawLua via Lua::exec_raw_lua (#670) WASDetchan 2026-01-23 19:19:10 +03:00
  • 7fb7e8685f Update spelling check Alex Orlenko 2026-01-23 15:37:18 +00:00
  • 93617eef4e Update trybuild (compile) messages Alex Orlenko 2026-01-23 15:16:35 +00:00
  • 171cdf1758 Some fixes and more tests for Function::info Alex Orlenko 2026-01-23 12:44:22 +00:00
  • 3f8f016daa Add num_params, is_vararg, nups to FunctionInfo (#665) psentee 2026-01-23 12:59:59 +01:00
  • 86d0c9bddb More multi borrow "send" test fixes due to regression in Rust 1.93+ Alex Orlenko 2026-01-22 22:44:30 +00:00
  • 86d63ef27b Fix missing BUFSIZ for wasm32 in libc Alex Orlenko 2026-01-22 15:46:31 +00:00
  • e33bcf7938 Add Lua 5.5 external string null byte test Alex Orlenko 2026-01-22 15:32:14 +00:00
  • c80a97b526 Ignore userdata_multithread_access_sync test Alex Orlenko 2026-01-22 15:25:18 +00:00
  • 3c40cfe199 mlua-sys: Use 2024 edition Alex Orlenko 2026-01-22 14:09:14 +00:00
  • e9efb73125 Update Luau FFI bindings (added some missing functions) Alex Orlenko 2026-01-22 14:05:57 +00:00
  • 386c6d8ed8 Update Lua 5.5 FFI bindings (add buffer manipulation, etc) Alex Orlenko 2026-01-22 12:54:55 +00:00
  • 8f086bf837 Update Lua 5.4 FFI bindings (add buffer manipulation, etc) Alex Orlenko 2026-01-22 12:34:58 +00:00
  • ad167612dc Update Lua 5.3 FFI bindings (add buffer manipulation, etc) Alex Orlenko 2026-01-20 15:36:36 +00:00
  • 3366f47d40 Minor Lua 5.2 fixes Alex Orlenko 2026-01-20 14:42:22 +00:00
  • 0b5ef91f44 Update Lua 5.2 FFI bindings (add buffer manipulation, etc) Alex Orlenko 2026-01-20 14:29:35 +00:00
  • a162b0ceca Update Lua 5.1 FFI bindings (add buffer manipulation, etc) Alex Orlenko 2026-01-20 14:01:04 +00:00
  • 8e6d652a21 Bump luau-src to 0.18.0 (Luau 0.705) Alex Orlenko 2026-01-20 13:05:00 +00:00
  • 1be9e6ce2d Add Lua 5.5 external strings support Alex Orlenko 2026-01-18 00:03:43 +00:00
  • b1f99aa852 Update tests Alex Orlenko 2026-01-15 15:21:16 +00:00
  • 4c5465229e Update CI Alex Orlenko 2026-01-14 21:44:25 +00:00
  • 9b24bb2319 Add Lua 5.5 to CI Alex Orlenko 2026-01-14 16:01:04 +00:00
  • e1701b6b56 cargo fmt Alex Orlenko 2026-01-14 15:57:52 +00:00
  • 77d7d5d6bd Add initial Lua 5.5 support Alex Orlenko 2026-01-13 23:43:19 +00:00
  • ee9232eda1 AnyUserData::is_proxy (#666) psentee 2026-01-13 16:08:38 +01:00
  • da526595bb mlua-sys: Add Lua 5.5 support Alex Orlenko 2026-01-13 00:05:01 +00:00
  • 39a7d3b862 Update SYS_MIN_ALIGN Alex Orlenko 2025-12-31 19:26:30 +02:00
  • 0245d4ce6b v0.11.5 v0.11.5 Alex Orlenko 2025-11-22 16:13:08 +00:00
  • a7f105c698 Update Lua::set_memory_category doc Alex Orlenko 2025-11-22 14:27:02 +00:00
  • d2a8670bef (CI) Update wasi/wasmtime Alex Orlenko 2025-11-22 13:58:15 +00:00
  • e9de70a030 (CI) Move from x86_64-apple-darwin to aarch64-apple-darwin Alex Orlenko 2025-11-22 13:57:04 +00:00
  • aee647c6c0 Update CHANGELOG Alex Orlenko 2025-11-22 13:55:07 +00:00
  • 2e4184e7e4 Update spelling Alex Orlenko 2025-11-22 13:49:23 +00:00
  • 12b24b6c5b mlua-sys: v0.9.0 Alex Orlenko 2025-11-22 13:47:17 +00:00
  • 1b500b7d47 Remove generic from internal definition of RawLua::create_string Alex Orlenko 2025-11-22 13:36:50 +00:00
  • ce4fc80e18 Bump luau-src to 0.17.0 (Luau 0.701) Alex Orlenko 2025-11-22 12:58:59 +00:00
  • 121971f54e Add Lua::set_memory_category and Lua::heap_dump functions to profile Luau memory usage. This functionality uses Luau private api to dump heap mempory in JSON format for inspection. The new type HeapDump represents memory snapshot with some basic API to calculate stats. Alex Orlenko 2025-11-21 15:11:27 +00:00
  • 6835537e3b Switch to released verson of luau0-src Alex Orlenko 2025-11-19 11:25:59 +00:00
  • a2728928cf Temporary disable some send tests on nightly Aparently there is a regression in the compiler and sync detection does not work correctly Alex Orlenko 2025-11-17 23:13:04 +00:00
  • 676f3a6983 Fix tests Alex Orlenko 2025-11-17 13:44:29 +00:00
  • 0beaac228c Update Luau require tests Alex Orlenko 2025-11-16 23:51:51 +00:00
  • 9a7f75ad6b Update require implementation to satisfy Luau 0.700 Alex Orlenko 2025-11-16 23:13:11 +00:00
  • cd56f92a7f Update Luau definitions in mlua-sys to 0.700 Alex Orlenko 2025-11-16 23:12:06 +00:00
  • 1bd1359f43 Exclude the first arg when checking for yield_with call. This is part of the previous commit Alex Orlenko 2025-11-06 23:28:37 +00:00
  • feec72bcbd Reduce number of allocations when calling async function Instead of creating a uniq poller with upvalue on each async call, return future directly and pass it to the poller This also gives about 3-5% perf improvements Alex Orlenko 2025-11-06 23:09:26 +00:00
  • 0611906c6a Add Lua::type_metatable helper to get metatable of a primitive type. The accompany function Lua::set_type_metatable already exists. Alex Orlenko 2025-11-05 22:07:14 +00:00
  • 72ac247dca Fix MaybeSend doc Alex Orlenko 2025-11-04 23:20:53 +00:00
  • f2fd010c5f Add missing lua_remove when discovering function name Alex Orlenko 2025-10-28 16:04:24 +00:00
  • 0619f264de Add Lua::traceback function to generate stack traces at different levels This is similar to debug.traceback, through does not require debug module. Close #652 Alex Orlenko 2025-10-28 14:49:22 +00:00
  • ddd44bdd36 Add LUA_LOADED_TABLE constant (Luau) Alex Orlenko 2025-10-27 20:57:56 +00:00
  • 1152519074 Add add_method_once and add_async_method_once UserData methods (experimental). They will allow implementing userdata methods that can be called only once, destructing userdata instance during the call. Alex Orlenko 2025-10-26 20:14:46 +00:00
  • 3a2fd1ec59 Make AnyUserData::type_name public Alex Orlenko 2025-10-17 20:00:46 +01:00
  • a4c8b20697 impl IntoLuaMulti for &MultiValue Alex Orlenko 2025-10-13 12:36:42 +01:00
  • 6e353d6c9f Build/test wasm32-wasip2 in CI (#649) Alex Crichton 2025-10-04 03:52:23 -05:00
  • 247208edb1 v0.11.4 v0.11.4 Alex Orlenko 2025-09-28 23:46:55 +01:00
  • e08768cc5e Derive Default for Value (clippy) Alex Orlenko 2025-09-28 23:41:46 +01:00
  • 5b38af9746 AsyncCallFuture is Unpin Alex Orlenko 2025-09-19 10:00:28 +01:00
  • 54907f80c5 Add SerializableValue to lib and prelude exports Alex Orlenko 2025-09-12 12:40:43 +01:00
  • ae512f2b49 Remove const from SerializableValue (it's not really useful) Alex Orlenko 2025-09-12 12:40:00 +01:00
  • 53c159b6cb Unhide Value::to_serializable Alex Orlenko 2025-09-12 11:45:00 +01:00
  • 2beca6ebe1 Add test for Table::for_each_value Alex Orlenko 2025-09-12 11:49:19 +01:00
  • 09da7a41e5 Add new serde option "detect_mixed_tables" This option would allow detecting mixed tables (with array-like and map-like entries or several borders) to encoding them chosing the best method (as a map or as a table). Alex Orlenko 2025-09-12 10:43:27 +01:00
  • bad20374ad Simplify Table::clear method There is no need to traverse array part, lua_next will cover everything Alex Orlenko 2025-09-08 23:09:26 +01:00
  • 40b507c3ec Add ObjectLike::get_path helper Alex Orlenko 2025-09-04 13:26:16 +01:00
  • 537cc995f6 Copyedit English in README.md (#639) Andrew Dunbar 2025-09-04 22:59:24 +09:00
  • 5d27cb91b2 Add optional __namecall optimization for Luau Add UserDataRegistry::enable_namecall() hint to set __namecall metamethod to enable Luau-specific method resolution optimization. Alex Orlenko 2025-09-01 22:51:09 +01:00
  • c70a636ca9 Remove newlines from yield_with examples Alex Orlenko 2025-08-30 12:51:53 +01:00
  • 13ff0ca798 v0.11.3 v0.11.3 Alex Orlenko 2025-08-29 23:11:21 +01:00
  • 44f49e35d6 Update CHANGELOG Alex Orlenko 2025-08-29 00:18:06 +01:00
  • e1ee4058a6 Add new benchmark to measure complex userdata method calls Alex Orlenko 2025-08-28 23:55:58 +01:00
  • f06d0020ea Add test to emulate method through field Alex Orlenko 2025-08-28 23:49:22 +01:00
  • d399559d30 Add Lua::yield_with to allow yielding Rust async functions and exchange values between Lua coroutine and Rust. This functionality is similar to coroutine.yield and coroutine.resume without C restrictions. Alex Orlenko 2025-08-28 18:41:24 +01:00
  • 30735d5ff1 Fix thread recovery when pushing a bad arg We should not erase thread stack if a bad argument is pushed before resuming the thread. Alex Orlenko 2025-08-25 22:57:38 +01:00
  • 75c23e5853 Add lua_cpcall to Luau ffi (0.688+) Alex Orlenko 2025-08-25 12:53:43 +01:00
  • 347856b806 Do not try to yield at non-yielable points in Luau interrupt In particular we cannot yeild across metamethod/C-call boundaries. This behaviour matches with Lua 5.3+ yielding from hooks only at safe points. Closes #632 Alex Orlenko 2025-08-25 12:16:40 +01:00
  • 774a63bece Add Buffer::cursor() method This can be useful for providing access to buffers through core IO traits. Alex Orlenko 2025-08-24 11:29:01 +01:00
  • c481c87eac Add Lua::create_buffer_with_capacity method This allow creating a preallocated buffer with specified size initialized to zero. Alex Orlenko 2025-08-23 22:36:31 +01:00
  • 85b280a9d6 Update nightly Rust error message matching Alex Orlenko 2025-08-23 09:27:23 +01:00
  • db7b782d3c Remove lifetimes from short type names Alex Orlenko 2025-08-23 09:13:31 +01:00
  • 5f38445558 Fix warnings Alex Orlenko 2025-08-20 16:25:06 +01:00
  • df0a44d405 Make Lua reference values cheap to clone Instead of locking the VM and making a copy on auxiliary thread, track number of references using Rust ref counter. This should also help reducing number of used references (they are limited to to 1M usually) on auxiliary thread. Alex Orlenko 2025-08-20 11:33:21 +01:00
  • f0806a6d62 Lower fastpath table creation limit to 1 << 26 When Lua is configured without memory restrictions, we use fastpath for table creation (unprotected mode). In generally it's safe as long as we abort() on allocation failure. However some Lua versions have additional restrictions on table size that we need to adhere in mlua too. Probably Luau has the lowest limits. Fixes #627 Alex Orlenko 2025-08-13 22:49:40 +01:00
  • 3516f4c6ca v0.11.2 v0.11.2 Alex Orlenko 2025-08-10 00:53:45 +01:00
  • ca73583714 Update CHANGELOG Alex Orlenko 2025-08-10 00:53:01 +01:00
  • 36560435f7 Add push_into_stack_multi fastpath to Variadic Alex Orlenko 2025-08-10 00:32:53 +01:00
  • 763c2b2564 Update repl example: don't print newline if no values returned Alex Orlenko 2025-08-10 00:20:20 +01:00
  • bafdb6138c Update dependencies Alex Orlenko 2025-08-10 00:19:54 +01:00
  • c9d6a610e1 mlua-sys: v0.8.3 Alex Orlenko 2025-08-10 00:11:05 +01:00
  • bd63f63bc9 Use ascii lowercase for module aliases This matches with Luau 0.686 changes Alex Orlenko 2025-08-09 19:14:31 +01:00
  • c035c23a15 fix: normalize_chunk_name handles Windows paths with drive letter (#623) piz-ewing 2025-08-05 05:34:36 +08:00
  • cb153a52b2 Make Luau registered aliases case-insensitive Executing require("@my_module") or require("@My_Module") should give the same result and use case-insensitive name. See #620 for details Alex Orlenko 2025-07-26 22:23:16 +01:00
  • b1c69d3005 Use to_bits comparison to check if a float value can be represented as an integer losslessly. This allows to simplify the code while still maintaining "negative zeros" edge case. Thanks @JasonHise for the suggestion. Alex Orlenko 2025-07-25 21:25:08 +01:00
  • 841bd332e4 Fix LuaJIT negative zero tests Alex Orlenko 2025-07-25 15:24:04 +01:00
  • 815d1bd7c9 Better handling negative zeros to match Lua 5.3+ behavior In Lua 5.3+ the function lua_isinteger returns "false" for -0.0 numbers. In earlier Lua versions we should follow the same behavior to avoid losing the sign when converting to Integer. Close #618 Alex Orlenko 2025-07-25 14:29:22 +01:00