Alex Orlenko
31efd0cf72
v0.10.5
v0.10.5
2025-05-24 12:41:05 +01:00
Alex Orlenko
6b79e4cd76
Update CHANGELOG
2025-05-24 12:41:04 +01:00
Alex Orlenko
ee2da72685
Revert default chunk name change
2025-05-24 12:40:58 +01:00
Alex Orlenko
6180a528a7
Revert = prefix from __mlua_async_poll
2025-05-24 12:30:32 +01:00
Alex Orlenko
69ef08d4d2
Switch back to Luau userdata destructors defined in mlua-sys v0.6
2025-05-24 11:35:25 +01:00
Alex Orlenko
f7f04d5180
Revert mlua-sys to v0.6.8
2025-05-24 10:43:28 +01:00
Alex Orlenko
e10623d658
Update __mlua_index/__mlua_newindex chunk names
2025-05-24 10:22:33 +01:00
Alex Orlenko
c3ab89ba66
Fix tests
2025-05-24 10:22:26 +01:00
Alex Orlenko
fa500639f0
Generate doc for lua_module macro using doc cfg instead of docsrs
2025-05-24 10:22:20 +01:00
Alex Orlenko
3d2574a855
Revert "Use c string literal where appropriate"
...
This reverts commit 46e949c184 .
2025-05-24 10:19:19 +01:00
Alex Orlenko
003935db47
Revert "Change Lua library name constants from &str to *const c_char."
...
This reverts commit 272cfdb89b .
2025-05-24 10:18:55 +01:00
Alex Orlenko
fbed171f90
Revert "Support 52-bit integers for Luau"
...
This reverts commit ef8b8e11ec .
2025-05-24 10:18:16 +01:00
Alex Orlenko
298d48f708
Update error message for UserDataRef
2025-05-06 10:24:53 +01:00
Alex Orlenko
4ff677f5fc
v0.10.4
v0.10.4
2025-05-05 15:43:00 +01:00
Alex Orlenko
5b920321dd
mlua-sys: v0.7.0
2025-05-05 13:25:55 +01:00
Alex Orlenko
6bb99783e9
Update CHANGELOG
2025-05-05 13:16:26 +01:00
Alex Orlenko
547f82acc1
Bump TARGET_MLUA_LUAU_ABI_VERSION
2025-05-05 12:13:50 +01:00
Alex Orlenko
9ea98e3f1e
Sync mlua-sys with the main branch
2025-05-05 12:02:13 +01:00
Alex Orlenko
0ad03bee98
Update README
2025-05-05 11:59:42 +01:00
Alex Orlenko
ba7c331984
Update __mlua_async_poll chunk name
2025-05-05 01:02:15 +01:00
Alex Orlenko
53dea3166a
Update Lua* dependencies
2025-05-05 01:01:57 +01:00
Alex Orlenko
129dec43ed
Silence clippy false positives
2025-05-05 00:59:06 +01:00
Alex Orlenko
a7f58e57ec
Update scoped userdata mismatch tests
2025-05-05 00:59:00 +01:00
Alex Orlenko
e6871525c4
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-05 00:58:46 +01:00
Alex Orlenko
c4956dbf49
Make StateGuard automatically enabled inside callback_error_ext.
...
Remove manual usage of `StateGuard` in other places.
Closes #567
2025-05-05 00:57:23 +01:00
Alex Orlenko
d0ea428e23
Add encode_empty_tables_as_array serialize option.
...
This will change the behaviour of encoding empty Lua tables into array instead of map.
2025-05-05 00:52:22 +01:00
Alex Orlenko
3e87d3ea9b
Optimize Table::is_empty
2025-05-05 00:52:14 +01:00
krakow10
0f8bde4b4e
Fix Reversed Comments & Typo ( #560 )
...
* Fix reversed comments
* Fix typos
2025-05-05 00:52:07 +01:00
Alex Orlenko
b9c9dfbd03
mlua-sys: Update Luau to 0.671
2025-05-05 00:51:38 +01:00
Alex Orlenko
71824297f6
mlua-sys: Add definitions for Luau require library (since 0.669)
2025-05-05 00:50:39 +01:00
Alex Orlenko
c0a8064228
Update references to mlua repo
2025-05-05 00:50:31 +01:00
Alex Orlenko
84efb8bf95
Fix warnings when testing documentation
2025-05-05 00:50:19 +01:00
Alex Orlenko
cf687a6ac6
Make Lua::weak() method and WeakLua struct public.
...
This can be useful to prevent circular dependencies between Rust and Lua
or check that Lua instance is still alive.
2025-05-05 00:50:12 +01:00
Alex Orlenko
ea85edb242
Update dependencies
2025-05-05 00:49:41 +01:00
Alex Orlenko
788175e0d6
Restrict access to Luau VM from UserData destructors.
...
It's unsafe to make almost any Lua calls when userdata destructor is running.
This can cause recursive GC run and crash.
See https://github.com/luau-lang/luau/pull/510 for some details.
2025-05-05 00:49:26 +01:00
Alex Orlenko
90ef25a6ee
Prepare for custom (Luau) userdata destructors.
...
We need to add logic later to prevent calling any Lua functions when UserData destructor is running.
2025-05-05 00:49:17 +01:00
Alex Orlenko
ac72f6acae
Do not propagate collect_garbage flag when clonning Lua
2025-05-05 00:47:39 +01:00
Alex Orlenko
4444ac4ea3
Add AnyUserData::type_id method
2025-05-05 00:47:09 +01:00
Alex Orlenko
5f950e30ec
Update Lua::poll_pending doc (still hidden)
2025-05-05 00:47:02 +01:00
Alex Orlenko
311aa5f6e1
Bump Luau to 0.667
2025-05-05 00:46:45 +01:00
Alex Orlenko
739d5f5262
Reduce stack operations when creating userdata
2025-05-05 00:46:28 +01:00
Alex Orlenko
375028e13f
Add Chunk::name(), Chunk::environment() and Chunk::mode() functions.
...
They can be used to retrieve existing chunk params.
2025-05-05 00:46:20 +01:00
Alex Orlenko
46e949c184
Use c string literal where appropriate
2025-05-05 00:44:05 +01:00
Alex Orlenko
62b53e218c
Move some userdata helpers from crate::util to crate::userdata::util
2025-05-05 00:43:12 +01:00
Alex Orlenko
0393406b9f
Refactor userdata-wrappers feature.
...
Support borrowing underlying data in `UserDataRef` and `UserDataRefMut`.
2025-05-04 18:45:42 +01:00
Alex Orlenko
272cfdb89b
Change Lua library name constants from &str to *const c_char.
...
It makes easier to pass them to Lua API functions.
2025-05-04 12:49:08 +01:00
Alex Orlenko
8e244a25ea
Update test case
2025-05-04 12:48:47 +01:00
Alex Orlenko
ef8b8e11ec
Support 52-bit integers for Luau
...
Simply to float conversion (it actually never fails or goes out of range)
2025-05-04 12:48:34 +01:00
Alex Orlenko
2543414726
Fix clippy warnings
2025-05-04 12:47:30 +01:00
Alex Orlenko
ee112568d6
Remove Roblox from references to Luau
...
Closes #537
2025-05-04 12:46:47 +01:00