Alex Orlenko
f7f04d5180
Revert mlua-sys to v0.6.8
2025-05-24 10:43:28 +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
5b920321dd
mlua-sys: v0.7.0
2025-05-05 13:25:55 +01:00
Alex Orlenko
9ea98e3f1e
Sync mlua-sys with the main branch
2025-05-05 12:02:13 +01:00
Alex Orlenko
53dea3166a
Update Lua* dependencies
2025-05-05 01:01:57 +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
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
311aa5f6e1
Bump Luau to 0.667
2025-05-05 00:46:45 +01:00
Alex Orlenko
46e949c184
Use c string literal where appropriate
2025-05-05 00:44:05 +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
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
ee112568d6
Remove Roblox from references to Luau
...
Closes #537
2025-05-04 12:46:47 +01:00
Alex Orlenko
d1cb2a9a96
mlua-sys: v0.6.7
2025-01-27 21:20:47 +00:00
Alex Orlenko
aa3f6ba46c
Fix prototype of new Luau compiler options and methods
2025-01-27 21:19:31 +00:00
Alex Orlenko
cc57bed4c8
Update Luau to 0.657
2025-01-27 14:19:40 +00:00
Alex Orlenko
d51ce86142
mlua-sys: v0.6.6
2024-12-01 12:56:39 +00:00
Alex Orlenko
7a3f19b857
Ensure that buffer with Luau compiled code is always freed
2024-11-29 13:36:51 +00:00
cos
30b0122f5d
Make build script work with OpenBSD
...
On OpenBSD the pkg-config names takes a minimalist format. No dash, and
no separator between the major and minor version number. Build script is
thus adapted to have also these in their set of alt_probes.
Signed-off-by: Alex Orlenko <zxteam@protonmail.com >
2024-11-16 01:52:43 +00:00
cos
c31c72076f
Make build script work with FreeBSD
...
On FreeBSD the pkg-config names takes the format with a dash, rather
than without (e.g. lua-5.4, not lua5.4). Thus adapt build script to
iterate over an array of alt_probes until finding a match.
Signed-off-by: Alex Orlenko <zxteam@protonmail.com >
2024-11-16 01:49:02 +00:00
Alex Orlenko
7c099500d0
mlua-sys: v0.6.5
2024-11-09 14:30:33 +00:00
Alex Orlenko
b34d67ec41
Update Luau to 0.650 (luau0-src 0.11.1)
2024-11-03 14:49:12 +00:00
Alex Orlenko
0a2a70c15a
mlua-sys: v0.6.4
2024-10-12 21:32:08 +01:00
Alex Orlenko
81d7c81532
Update Luau to 0.647
2024-10-12 21:30:56 +01:00
Alex Orlenko
3088516851
Update luaL_checkstack messages
2024-09-22 17:33:28 +01:00
Alex Orlenko
7543b0674e
mlua-sys: v0.6.3
2024-09-07 23:23:47 +01:00
Alex Orlenko
ecc09c4387
Add luaL_loadbufferenv helper to all Lua versions
2024-08-25 17:29:58 +01:00
bjcscat
7bfd32750d
Change chunk env to use luau's load env parameter ( #442 )
2024-08-25 16:50:41 +01:00
Alex Orlenko
b4892c228c
Add rustfmt.toml
2024-07-31 13:42:37 +01:00
Alex Orlenko
7d3704c222
mlua-sys: v0.6.2
2024-07-25 22:49:56 +01:00
Alex Orlenko
9ce0e11518
Use Lua 5.4.7
2024-07-25 22:45:40 +01:00
Alex Orlenko
884a025b52
Fix some clippy warnings
2024-06-18 16:09:08 +01:00
Alex Orlenko
b46cad1db1
Support Luau v0.629
2024-06-09 00:37:58 +01:00
Alex Orlenko
8f3de8aa19
mlua-sys: v0.6.0
2024-05-04 21:22:17 +01:00
Alex Orlenko
317ce7caa6
Add Lua::set_fflag() to control Luau feature flags
2024-05-04 21:15:22 +01:00
Alex Orlenko
3a44729a48
Mark lua_Callbacks as non exhaustive (Luau)
2024-05-04 21:11:29 +01:00
Alex Orlenko
3d46fad459
Update luau-src to v0.9
...
Mark `lua_CompileOptions` as non exhaustive
2024-05-04 21:10:24 +01:00
Eric Stokes
1c969da286
update build script to fix cross compilation of windows dlls from unix ( #397 )
2024-04-17 20:29:41 +01:00
Alex Orlenko
45fd2fa40a
mlua-sys: v0.5.2
2024-04-05 14:04:15 +01:00
Yiyu Lin
b62f2ee0f7
chore: make clippy happy ( #388 )
...
Co-authored-by: hzlinyiyu <hzlinyiyu@corp.netease.com >
2024-03-25 13:26:06 +00:00
Alex Orlenko
5a22437d5f
Assert that luau_compile returns non-null pointer.
...
Fixes #381
2024-03-16 23:39:10 +00:00
Alex Orlenko
e30b425224
Fix crash when initializing Luau sandbox without stdlibs ( #361 )
2024-01-27 11:51:59 +00:00
Alex Orlenko
75a15ceabf
v0.9.5
2024-01-25 22:24:58 +00:00
Alex Orlenko
e97e69a309
Update Luau to 0.609 (luau-src v0.8.0)
2024-01-25 09:38:46 +00:00
Alex Orlenko
3c801e7b17
Expose internal POLL_PENDING constant (hidden)
2024-01-20 15:52:00 +00:00
Alex Orlenko
a38e484fe9
Increase luau max stack size to 1M from 100k
2024-01-18 23:05:23 +00:00