Ron Tseytlin
2fbbbe4238
Fix minor grammar mistakes in README.md ( #591 )
2025-06-12 12:57:11 +01:00
Alex Orlenko
f00208373e
Bump lua-src
2025-06-12 00:17:29 +01:00
Alex Orlenko
a2dc662a92
Add RawLua::create_table_from (internal)
2025-06-11 23:55:06 +01:00
Alex Orlenko
caeac2e9a3
Add private app_data container for mlua internal use
2025-06-11 22:24:26 +01:00
Alex Orlenko
3d5261640d
Fix doc warnings
2025-06-06 23:25:36 +01:00
Alex Orlenko
b57a6239a6
mlua_derive: v0.11.0-beta.2
2025-06-06 23:20:01 +01:00
Alex Orlenko
031424f6ce
Update dev dependencies
2025-06-06 23:17:58 +01:00
Alex Orlenko
c4c9609ac6
mlua-sys: v0.8.0
2025-06-06 23:09:30 +01:00
Alex Orlenko
6fcd18e434
Update CHANGELOG
2025-06-06 16:03:59 +01:00
Alex Orlenko
39cac5699a
Add unwinding support (returning an Error) to Luau Require implementation
2025-06-06 13:46:51 +01:00
Alex Orlenko
e6e1ef014f
Some cosmetic changes (Luau "require")
2025-06-05 23:11:14 +01:00
Alex Orlenko
942a443592
Bump Lua 5.4 to 5.4.8
2025-06-05 15:02:47 +01:00
Alex Orlenko
65e292dac4
More Luau require tests
2025-06-03 23:01:50 +01:00
Alex Orlenko
1a82f83644
Move parking_lot/send_guard from send to userdata-wrappers feature.
...
Related to #553
2025-05-30 23:20:06 +01:00
Alex Orlenko
38fbd08c72
Use luau0-src v0.15.0 (Luau 0.676)
2025-05-30 21:56:27 +01:00
Alex Orlenko
b3854d2f1d
Add '=' prefix to __mlua_bind name
2025-05-28 14:03:10 +01:00
Alex Orlenko
00a56b115b
Add LuaBorrowedBytes/LuaBorrowedStr to prelude
2025-05-28 14:01:35 +01:00
Alex Orlenko
2fefaafaa6
Update "AnyUserData::take" to work on ref thread without need to push into stack.
2025-05-28 12:13:34 +01:00
Alex Orlenko
76a8f8cc71
Add __type to Error's userdata metatable.
...
Close #585
2025-05-27 01:31:54 +01:00
Alex Orlenko
13395e9c3d
Sync mlua_derive with AsChunk trait
2025-05-27 00:54:24 +01:00
Alex Orlenko
c61219dd93
Update Luau Require trait (sync with 0.674)
2025-05-27 00:12:45 +01:00
Alex Orlenko
2e7c654cfe
Make AsChunk trait dyn-friendly
2025-05-26 23:29:59 +01:00
Alex Orlenko
f36aaa5ce1
Add loadstring function to Luau
...
Closes #578
2025-05-15 11:10:42 +01:00
Alex Orlenko
df38878278
Update __mlua_index/__mlua_newindex chunk names
2025-05-15 11:03:30 +01:00
Alex Orlenko
c5c1fe3b85
Fix tests
2025-05-14 00:19:29 +01:00
Alex Orlenko
0cc4b15f6b
Generate doc for lua_module macro using doc cfg instead of docsrs
2025-05-13 21:56:11 +01:00
Alex Orlenko
f16aca687d
Terminate underlying Rust future when AsyncThread is dropped.
...
Before this change, Lua GC was responsible to collect and destroy the future if
`AsyncThread` dropped in yielded state.
Now we will propagate "drop" event immediately so Lua GC need to only free the memory.
2025-05-09 12:48:40 +01:00
Alex Orlenko
9b45663afd
v0.11.0-beta.1
v0.11.0-beta.1
2025-05-06 23:25:26 +01:00
Alex Orlenko
c0c802262e
Add must_use to AsyncCallFuture
2025-05-06 22:48:48 +01:00
Alex Orlenko
dda344bfc6
Rename _typos.toml to typos.toml
2025-05-06 22:42:19 +01:00
Alex Orlenko
93adfa42d1
Update doc comments
2025-05-06 22:36:23 +01:00
Alex Orlenko
5dc6c3214b
Prepare for 2024 edition
2025-05-06 21:28:21 +01:00
Alex Orlenko
da08f7210f
Revert disabling "module" feature flag for Luau in mlua-sys
...
Dynamic linking should still be okay
2025-05-06 15:48:52 +01:00
Alex Orlenko
8b7a85076a
mlua-sys: Prepare to 2024 edition
2025-05-06 15:47:14 +01:00
Alex Orlenko
a4ff68a120
v0.10.4
2025-05-06 15:47:09 +01:00
Alex Orlenko
5454cfa5ed
mlua-sys: v0.7.0
2025-05-06 15:46:35 +01:00
Alex Orlenko
f9d9dc74a7
Update CHANGELOG
2025-05-06 15:46:29 +01:00
Alex Orlenko
ed796fff51
Support async require loaders for Luau
2025-05-04 11:00:59 +01:00
Alex Orlenko
65e5be81ba
Update __mlua_async_poll chunk name
2025-05-04 11:00:27 +01:00
Alex Orlenko
4fa8e645b7
Fix Luau "require" tests
2025-05-03 21:45:39 +01:00
Alex Orlenko
05a0abb8c2
Replace Requite::load with Require::loader
2025-05-03 18:00:02 +01:00
Alex Orlenko
f0c0527c2b
Update Lua* dependencies
2025-05-03 17:58:33 +01:00
Alex Orlenko
2490dfeb38
Silence clippy false positives
2025-05-01 13:18:40 +01:00
Alex Orlenko
4a3dbafb6e
Update scoped userdata mismatch tests
2025-05-01 13:12:00 +01:00
Alex Orlenko
97ca3e2c08
Check that type passed to scoped userdata self argument is userdata.
...
If passed type is non-userdata we try to get a pointer (which will be null) that triggers an assertion.
Having a check also allow us to generate right error message.
Fixes #569
2025-05-01 13:09:23 +01:00
Alex Orlenko
d6fb328660
Don't use Lua::get_or_init_from_ptr in Require::load wrapper
2025-04-28 10:07:11 +01:00
Alex Orlenko
edd508ed1f
Make StateGuard automatically enabled inside callback_error_ext.
...
Remove manual usage of `StateGuard` in other places.
Closes #567
2025-04-27 23:09:20 +01:00
Alex Orlenko
a30a736291
Don't borrow mutably appdata container when working with require content cache
2025-04-27 00:38:30 +01:00
Alex Orlenko
8e1df48e81
Add encode_empty_tables_as_array serialize option.
...
This will change the behaviour of encoding empty Lua tables into array instead of map.
2025-04-26 17:53:56 +01:00
Alex Orlenko
efd192b816
Optimize Table::is_empty
2025-04-26 15:37:12 +01:00