Alex Orlenko
|
f9ff6116db
|
Use MaybeUninit instead of hack in protect_lua_closure
|
2022-07-17 11:33:51 +01:00 |
Alex Orlenko
|
f75af6d75f
|
Fix clippy warnings
|
2022-07-17 11:11:30 +01:00 |
Alex Orlenko
|
059e41bafb
|
Optimize `WrappedFailure` userdata detection.
This is done by comparing a metatable pointer to previously saved one (it never changes).
|
2022-07-17 11:00:46 +01:00 |
Alex Orlenko
|
f7ee6dc635
|
Add lua_xpush to 5.1-5.4
|
2022-07-17 11:00:46 +01:00 |
Alex Orlenko
|
0919ff21c9
|
Merge pull request #181 from hack3ric/master
Add `MultiValue::get` & add clear error in `Index`
|
2022-07-01 10:10:16 +01:00 |
Eric Long
|
553251761f
|
Add `MultiValue::get` & add clear error in `Index`
|
2022-07-01 01:59:40 +08:00 |
Alex Orlenko
|
b46b476f80
|
v0.8.1
|
2022-06-29 15:41:22 +01:00 |
Alex Orlenko
|
70e16b51ae
|
Set source name to full file path in Luau require
|
2022-06-29 11:25:16 +01:00 |
Alex Orlenko
|
9596b97faa
|
Update Lua::create_userdata doc about sharing metatable.
Closes #175
|
2022-06-29 00:25:26 +01:00 |
Alex Orlenko
|
8cbb3d8fae
|
Merge pull request #180 from khvzak/userdata_proxy
Add Lua::create_proxy for easy access to UserData static fields and f…
|
2022-06-29 00:05:59 +01:00 |
Alex Orlenko
|
e7f494530f
|
Add Lua::create_proxy for easy access to UserData static fields and functions
Closes #178
|
2022-06-28 23:03:29 +01:00 |
Alex Orlenko
|
3746c3614f
|
Merge pull request #179 from hack3ric/master
Implement utilities for MultiValue
|
2022-06-28 22:56:28 +01:00 |
Alex Orlenko
|
9af1aaf889
|
Make clippy happy
|
2022-06-28 21:28:48 +01:00 |
Eric Long
|
c20eb20a59
|
Implement utilities for MultiValue
|
2022-06-29 01:21:32 +08:00 |
Alex Orlenko
|
04ba93137c
|
Add `Table::to_pointer()` and `String::to_pointer()` functions
|
2022-06-27 14:58:48 +01:00 |
Alex Orlenko
|
113f91ace3
|
Derive Default for Lua::MemoryInfo
|
2022-06-27 13:57:15 +01:00 |
Alex Orlenko
|
ff0d923aae
|
Don't use custom allocator for non-vendored LuaJIT (fixes #176)
|
2022-06-27 13:04:32 +01:00 |
Alex Orlenko
|
d9ac7abff2
|
v0.8.0
|
2022-06-08 23:57:35 +01:00 |
Alex Orlenko
|
48aa97351d
|
Add Sandboxing section to README
|
2022-06-08 23:56:26 +01:00 |
Alex Orlenko
|
4516ca0bb5
|
Forgotten part of userdata performance optimization for Lua 5.1
|
2022-06-07 17:59:22 +01:00 |
Alex Orlenko
|
9005f32a98
|
Add `ffi::luau::lua_tolightuserdata` introduced in Luau 0.528
|
2022-06-06 22:40:29 +01:00 |
Alex Orlenko
|
93d36b9068
|
More performance optimization (userdata part)
|
2022-06-06 21:42:55 +01:00 |
Alex Orlenko
|
f9f32bffce
|
Update bundled luau/jit versions
|
2022-06-06 15:59:28 +01:00 |
Alex Orlenko
|
da5010e6de
|
Switch to 2021 edition and bump MSRV to 1.56+
|
2022-06-06 15:40:29 +01:00 |
Alex Orlenko
|
4afca8f5bb
|
Prepare for v0.8.0 release
|
2022-06-02 22:44:07 +01:00 |
Alex Orlenko
|
b065db37c2
|
Always use Rust allocator for Lua 5.1/u
|
2022-05-31 02:09:58 +01:00 |
Alex Orlenko
|
a100ebb3d7
|
Fix luaL_requiref glb handling for Lua<=5.1
|
2022-05-30 21:45:25 +01:00 |
Alex Orlenko
|
a05a58b258
|
Update integer/number coercion logic
|
2022-05-30 19:26:12 +01:00 |
Alex Orlenko
|
3766cee4dd
|
Experimental optimization to skip oom check
|
2022-05-30 18:42:34 +01:00 |
Alex Orlenko
|
99becdb590
|
More inline attributes
|
2022-05-29 20:17:09 +01:00 |
Alex Orlenko
|
799b4e9f0d
|
Make Variadic::new and MultiValue::new const
|
2022-05-28 21:13:49 +01:00 |
Alex Orlenko
|
93f0b2a5de
|
Update type of lua_Integer for lua51/52
|
2022-05-27 12:26:56 +01:00 |
Alex Orlenko
|
62db3adde1
|
Add "send" test
|
2022-05-26 22:22:23 +01:00 |
Alex Orlenko
|
afa343ff08
|
Add [track_caller] attribute when working with app data container
|
2022-05-26 20:16:09 +01:00 |
Alex Orlenko
|
4f06f614a9
|
v0.8.0-beta.5
|
2022-05-25 01:47:38 +01:00 |
Alex Orlenko
|
30ba616a8a
|
Correctly deserialize newtype struct (#168)
|
2022-05-24 23:26:17 +01:00 |
Alex Orlenko
|
0076aa735a
|
Add `Function::coverage` for Luau to obtain coverage report
|
2022-05-24 02:01:46 +01:00 |
Alex Orlenko
|
bcf2cbea37
|
Add `Value::to_pointer()` function.
Closes #165 and #166.
|
2022-05-18 13:15:08 +01:00 |
Alex Orlenko
|
8cd594c609
|
Fix typo
|
2022-05-18 12:15:39 +01:00 |
Alex Orlenko
|
8d71ea79aa
|
Cache bytecode for internal Lua chunks
|
2022-05-16 20:29:02 +01:00 |
Alex Orlenko
|
2a8c5c7f82
|
Refactor `Function::bind` implementation.
Make it possible to bind async function arguments.
Fixes #161
|
2022-05-15 01:15:31 +01:00 |
Alex Orlenko
|
6b2ceb60c4
|
Fix Send impl
|
2022-05-12 19:24:12 +01:00 |
Alex Orlenko
|
3aac7131ee
|
Add Iter metamethod for Luau (available from 0.526)
|
2022-05-09 14:34:10 +01:00 |
Alex Orlenko
|
1807fa789c
|
Don't require Lua sources for modules in build system
|
2022-05-07 22:16:54 +01:00 |
Alex Orlenko
|
7db7526a08
|
Update to Luau 0.526
|
2022-05-07 02:08:50 +01:00 |
Alex Orlenko
|
bea9b0f8b5
|
Assert stack for Luau in `callback_error_ext` when operating on a cached wrapped failure.
Should solve #153.
|
2022-04-27 00:20:25 +01:00 |
Alex Orlenko
|
32a3f478bd
|
v0.8.0-beta.4
|
2022-04-25 23:18:27 +01:00 |
Alex Orlenko
|
294b3b7aae
|
Bump mlua_derive to 0.8.0-beta.1
|
2022-04-19 23:55:16 +01:00 |
Alex Orlenko
|
b0dabe9d3c
|
Add parking_lot feature to README
|
2022-04-19 23:50:11 +01:00 |
Alex Orlenko
|
5133a9837a
|
Add `Function::info()` to get information about functions.
Closes #149 and #7.
|
2022-04-18 18:28:11 +01:00 |
Alex Orlenko
|
790df77965
|
Fix "unused" warning in tests
|
2022-04-17 22:39:21 +01:00 |
Alex Orlenko
|
a62636fde0
|
More parking_lot ci tests
|
2022-04-17 17:29:51 +01:00 |
Alex Orlenko
|
d77c0e3b8d
|
Merge pull request #147 from sondr3/parking_lot
Add parking_lot dependency and feature
|
2022-04-17 01:38:03 +01:00 |
Alex Orlenko
|
3904213ed0
|
Faster lua_rotate for Lua < 5.3
|
2022-04-17 01:02:40 +01:00 |
Sondre Aasemoen
|
a5ce0c1409
|
Add parking_lot dependency and feature
|
2022-04-16 19:45:21 +02:00 |
Alex Orlenko
|
dba76f3994
|
Merge pull request #145 from zh-jq/patch-v0.7.4
support luajit version 2.0.4
|
2022-04-15 20:25:32 +01:00 |
Alex Orlenko
|
86f506a170
|
Fix clippy warnings
|
2022-04-14 21:55:36 +01:00 |
Alex Orlenko
|
d3975bdf30
|
Refactor `AsChunk` trait.
Remove blanket implementation for T: AsRef<[u8]>
Implement for `std::path::Path`
|
2022-04-14 20:48:00 +01:00 |
Alex Orlenko
|
21affdadfd
|
Remove Luau compiler options from Chunk in favour of setting Compiler instance.
Add ability to set global Luau compiler used for load all chunks including via require function.
|
2022-04-14 00:54:29 +01:00 |
Alex Orlenko
|
17473269f8
|
Update collectgarbage for Luau: support more options
|
2022-04-13 20:50:50 +01:00 |
Alex Orlenko
|
88e3e92009
|
Define CallbackUpvalue/AsyncCallbackUpvalue as type alises to Upvalue
|
2022-04-13 18:29:51 +01:00 |
Alex Orlenko
|
1ba7a409d5
|
Update compile tests
|
2022-04-13 14:30:52 +01:00 |
Alex Orlenko
|
ef81f40afa
|
Add tests for static Lua instance
|
2022-04-13 14:30:45 +01:00 |
Alex Orlenko
|
a018d3b6dc
|
Revert "Remove Lua::into_static/from_static"
This reverts commit f75b7b7879 .
|
2022-04-13 13:44:59 +01:00 |
Alex Orlenko
|
0215c31a3a
|
Refactor Lua instance structure.
The idea is to keep same Lua instance across all calls and only change context inside callbacks.
This should solve #104.
|
2022-04-13 13:44:12 +01:00 |
Alex Orlenko
|
5cd82d0f6b
|
Refactor `main_state` handling
|
2022-04-13 13:44:11 +01:00 |
zhangjingqiang
|
75697e3a3b
|
support luajit version 2.0.4
|
2022-04-13 13:36:45 +08:00 |
Alex Orlenko
|
d1c80be033
|
Don't cast *const to *mut (for pointers comparison)
|
2022-04-08 22:52:55 +01:00 |
Alex Orlenko
|
a8fef51e86
|
(minor) Fix capturing variables in protect_lua closures
|
2022-04-08 21:15:57 +01:00 |
Alex Orlenko
|
28a063c1e5
|
Implement Hash for Lua String
|
2022-04-08 20:02:18 +01:00 |
Alex Orlenko
|
55fac90a74
|
Fix Luau documentation in docs.rs
Enable `Lua::gc_inc` for Luau
Mark `debug` module as safe for Luau
|
2022-04-08 20:02:12 +01:00 |
Alex Orlenko
|
70d287cf9f
|
Don't pass Lua handler to interrupt callback (Luau) as it's not safe.
Optimize callback_error_ext to check stack only before allocating a new WrappedFailure.
|
2022-04-08 10:45:28 +01:00 |
Alex Orlenko
|
d607039a31
|
v0.8.0-beta.3
|
2022-04-03 23:38:41 +01:00 |
Alex Orlenko
|
0ea65a2985
|
Fix doc test
|
2022-04-03 22:13:54 +01:00 |
Alex Orlenko
|
8c333354d3
|
Update Luau to 0.521
|
2022-03-31 23:28:37 +01:00 |
Alex Orlenko
|
f63f147265
|
Add `set_mutable_globals` to Luau compiler
|
2022-03-31 20:35:52 +01:00 |
Alex Orlenko
|
595dc3e95f
|
Move some Luau functionality to a new module
Immplement native "vector" function to construct vectors
|
2022-03-31 19:31:37 +01:00 |
Alex Orlenko
|
ac28c8d8d2
|
Add vector_lib/vector_ctor options to Luau Compiler (hidden)
|
2022-03-31 19:05:19 +01:00 |
Alex Orlenko
|
d5315da8d1
|
Fix tests
|
2022-03-31 12:23:21 +01:00 |
Alex Orlenko
|
a7cc7f328a
|
Increase minimum `lua-src` version to 544
|
2022-03-31 00:09:52 +01:00 |
Alex Orlenko
|
516f01ed44
|
Increase internal caches size
|
2022-03-31 00:07:05 +01:00 |
Alex Orlenko
|
4492a20bbc
|
Make LuaHook as Fn instead of FnMut to remove Mutex and improve performance
|
2022-03-30 23:55:34 +01:00 |
Alex Orlenko
|
595bc3a2b3
|
Support Luau interrupts (closes #138)
|
2022-03-30 22:01:06 +01:00 |
Alex Orlenko
|
87c10ca93d
|
Sandboxing support
|
2022-03-28 23:42:35 +01:00 |
Alex Orlenko
|
f75b7b7879
|
Remove Lua::into_static/from_static
|
2022-03-26 00:30:57 +00:00 |
Alex Orlenko
|
de1cfa070f
|
v0.8.0-beta.2
|
2022-03-25 00:44:02 +00:00 |
Alex Orlenko
|
ec1fa04085
|
Update docs
|
2022-03-25 00:43:54 +00:00 |
Alex Orlenko
|
714dd6249f
|
Enable Thread::reset for Luau
|
2022-03-23 21:13:48 +00:00 |
Alex Orlenko
|
5089dd73c0
|
Update luau-src to 0.2.1 to fix performance issues related to longjmp
|
2022-03-23 01:25:34 +00:00 |
Alex Orlenko
|
9533f08d3a
|
Use `lua_xpush` for Luau
|
2022-03-23 01:24:54 +00:00 |
Alex Orlenko
|
0a3b65af88
|
Support `readonly` table attribute (luau)
|
2022-03-22 21:33:29 +00:00 |
Alex Orlenko
|
3a9c8c2da2
|
Add Luau vector datatype support
|
2022-03-22 21:14:06 +00:00 |
Alex Orlenko
|
952dae1de5
|
v0.8.0-beta.1
|
2022-03-22 01:01:18 +00:00 |
Alex Orlenko
|
c88e5f0c4b
|
Update README
|
2022-03-22 00:49:50 +00:00 |
Alex Orlenko
|
55b778c68b
|
Fix clippy warnings
|
2022-03-22 00:47:31 +00:00 |
Alex Orlenko
|
c6d3727171
|
Prepare v0.8.0-beta.1
|
2022-03-21 01:37:08 +00:00 |
Alex Orlenko
|
4e0ba6559e
|
Add `require` function to Luau
|
2022-03-21 01:08:48 +00:00 |
Alex Orlenko
|
405cff5d49
|
Move StaticUserData* implementation from `lua` module to the new `userdata_impl`
|
2022-03-21 01:08:48 +00:00 |
Alex Orlenko
|
37cddc6b1c
|
Replace compat53_countlevels with lua_stackdepth for Luau
|
2022-03-21 01:08:48 +00:00 |
Alex Orlenko
|
2c069f7033
|
Update to luau 0.519
|
2022-03-21 01:08:48 +00:00 |