Alex Orlenko
|
6fb65a8fbe
|
Fix loading luau code starting with \t
|
2023-07-22 18:44:44 +01:00 |
|
Alex Orlenko
|
f6dff65d9b
|
Do not rely on vendored feature when testing luajit memory limit
|
2023-07-21 23:25:28 +01:00 |
|
Alex Orlenko
|
4fa9aa1e5b
|
Pin lua-src and luajit-src versions
|
2023-07-21 23:22:47 +01:00 |
|
Alex Orlenko
|
e1c075fa51
|
Use giraffate/clippy-action
|
2023-07-21 10:34:29 +01:00 |
|
Alex Orlenko
|
df9251fb52
|
Support LUA_LIB_NAME in module mode for windows.
In this mode we will link with the particular lua library.
|
2023-07-21 10:34:26 +01:00 |
|
Alex Orlenko
|
ead6be4a52
|
Make module and vendored features mutually exclusive
|
2023-07-20 23:23:03 +01:00 |
|
Alex Orlenko
|
4f48c7e5dc
|
Update README
|
2023-07-20 21:58:01 +01:00 |
|
Alex Orlenko
|
fac39a2f46
|
Drop openresty specific luajit extensions
|
2023-07-20 01:02:23 +01:00 |
|
Alex Orlenko
|
483e6be207
|
Support vendored module mode for windows (raw-dylib linking)
This is requires Rust 1.71+
|
2023-07-20 00:43:57 +01:00 |
|
Alex Orlenko
|
0e030d21b0
|
Add #[derive(FromLua)] macro to opt-in into FromLua<T> where T: 'static + Clone (userdata type).
Future macro implementations will allow making T from Lua tables/other values.
Relates to #291.
|
2023-07-16 01:57:28 +01:00 |
|
Alex Orlenko
|
355a0606c3
|
v0.9.0-rc.1
v0.9.0-rc.1
|
2023-07-11 22:15:31 +01:00 |
|
Alex Orlenko
|
2277ee4860
|
Rename UserDataRegistrar to LuaUserDataRegistry
|
2023-07-11 22:15:15 +01:00 |
|
Alex Orlenko
|
8a4977e8e7
|
Use pretty format in the repl example
|
2023-07-11 21:39:05 +01:00 |
|
Alex Orlenko
|
128c357e07
|
Use __tostring if __name is not available when pretty printing userdata values
|
2023-07-11 21:36:02 +01:00 |
|
Alex Orlenko
|
9f0fc27c52
|
Make Lua::push_value() and Lua::pop_value() public (but hidden from the docs).
Can be useful for low-level intergration with mlua values.
Also closes #215.
|
2023-07-11 20:03:41 +01:00 |
|
Alex Orlenko
|
bfd1c29c0a
|
Add back Table::raw_sequence_values() with deprecation notice
|
2023-07-11 16:02:28 +01:00 |
|
Alex Orlenko
|
5fca2db6d3
|
Revert Add error-send feature
|
2023-07-11 15:50:15 +01:00 |
|
Alex Orlenko
|
8ecbf5b76a
|
v0.9.0-rc.1
|
2023-07-11 01:09:45 +01:00 |
|
Alex Orlenko
|
d037c31b4d
|
mlua-sys: v0.2.1
|
2023-07-11 01:07:37 +01:00 |
|
Alex Orlenko
|
4fe89c9d45
|
mlua_derive: v0.9.0-rc.1
|
2023-07-11 01:07:07 +01:00 |
|
Alex Orlenko
|
389526bb80
|
Some doc improvements
|
2023-07-11 00:28:24 +01:00 |
|
Alex Orlenko
|
4adc3116f9
|
Add error-send feature
|
2023-07-11 00:20:52 +01:00 |
|
Alex Orlenko
|
8e0bdc9934
|
Remove clippy::let_and_return ignore
|
2023-07-10 22:58:15 +01:00 |
|
Alex Orlenko
|
7dc6e4c132
|
Add Error::runtime() helper
|
2023-07-10 22:41:03 +01:00 |
|
Alex Orlenko
|
44b8c8b7a6
|
Add AnyUserData::wrap() to more easy way of creating _any_ userdata in Lua.
This is similar to `Function::wrap()`.
|
2023-07-10 16:36:38 +01:00 |
|
Alex Orlenko
|
6b8b79266f
|
Drop futures-timer dev-dependency
|
2023-07-10 01:16:27 +01:00 |
|
Alex Orlenko
|
08ab685d8d
|
Update itertools dev-dependency
|
2023-07-10 01:16:20 +01:00 |
|
Alex Orlenko
|
057deb0169
|
Update rustyline dependency to 12.0
|
2023-07-10 01:05:40 +01:00 |
|
Alex Orlenko
|
44533d2c9d
|
Add new module attribule skip_memory_check to improve performance
in module mode (by skipping memory allocations check) with extra risks.
|
2023-07-10 00:43:19 +01:00 |
|
Alex Orlenko
|
54c7a2d191
|
Update compile tests
|
2023-07-10 00:10:20 +01:00 |
|
Alex Orlenko
|
c38a1f060b
|
Various cosmetic changes
|
2023-07-10 00:04:40 +01:00 |
|
Alex Orlenko
|
5dca743b0c
|
Improve performance AnyUserData::{is_serializable/inspect/serialize}
|
2023-07-10 00:01:26 +01:00 |
|
Alex Orlenko
|
01c1952c9f
|
Rename AnyUserData::get_*_user_value to AnyUserData::*_user_value.
To be more consistent with function like `Lua::named_registry_value`, `Lua::add_data_ref` and os on.
|
2023-07-09 23:50:44 +01:00 |
|
Alex Orlenko
|
dbc3dd95d4
|
Fix Luau vector4 formatting when throwing it in exception
|
2023-07-09 23:14:49 +01:00 |
|
Alex Orlenko
|
a9b0cdfc03
|
Take &str as function name in TableExt and AnyUserDataExt traits
|
2023-07-09 22:49:16 +01:00 |
|
Alex Orlenko
|
1c20494158
|
Use usize instead of c_int for table capacity (Lua::create_table_with_capacity)
|
2023-07-09 22:11:26 +01:00 |
|
Alex Orlenko
|
c9294ad642
|
Add #[must_use] hint and const to some Luau Compiler functions
|
2023-07-09 14:13:06 +01:00 |
|
Alex Orlenko
|
3a71bfb8a0
|
Refactor Lua 5.4 warnings to use &str instead of CStr
|
2023-07-09 14:13:05 +01:00 |
|
Alex Orlenko
|
24e14c4874
|
Always set hook on a current Lua context (state) and remove MainThreadNotAvailable as no longer needed
|
2023-07-09 12:33:21 +01:00 |
|
Alex Orlenko
|
20826a69ae
|
Re-export ffi crate (mlua-sys)
|
2023-07-09 11:31:59 +01:00 |
|
Alex Orlenko
|
5127903c38
|
Remove generic type parameter from init_userdata_metatable
|
2023-07-08 17:00:46 +01:00 |
|
Alex Orlenko
|
541139b944
|
Change Lua ref types Debug print from Ref{index} to Ref{pointer}
The index is always uniq per instance, but pointer can exactly tell when
several values reference to the same Lua internal value.
|
2023-07-08 12:52:14 +01:00 |
|
Alex Orlenko
|
925a2816cc
|
clippy
|
2023-07-06 00:59:46 +01:00 |
|
Alex Orlenko
|
b3b8d79446
|
Make Debug interface more user friendly
- use String instead of Vec<u8>
- update docs
- unify fields between lua5.x/luau
- line numbers are `usize`
|
2023-07-06 00:38:33 +01:00 |
|
Alex Orlenko
|
85f17a269d
|
Add Table:is_empty() function
|
2023-06-26 10:50:18 +01:00 |
|
Alex Orlenko
|
b169031d4e
|
Don't use any metamethods in Table::sequence_values() iterator.
This is matches with `Table::pair()` iterator.
Remove `Table::raw_sequence_values()` iterator.
|
2023-06-26 10:46:59 +01:00 |
|
Alex Orlenko
|
399e469328
|
Update "async userdata method" benchmark
|
2023-06-21 22:23:43 +01:00 |
|
Alex Orlenko
|
1367a033d7
|
Don't clone function when doing call_async()
|
2023-06-21 13:14:17 +01:00 |
|
Alex Orlenko
|
c1168d3ec1
|
Refactor call_async() functions to use static dispatch outside of traits
|
2023-06-21 12:44:24 +01:00 |
|
Alex Orlenko
|
b05698d55b
|
impl UserData for Rc<T> and Arc<T> where T: UserData
|
2023-06-21 01:30:09 +01:00 |
|