Alex Orlenko
cd6d86a5ce
Split single lua module to multiple submodules under state
2024-07-31 13:42:37 +01:00
Alex Orlenko
b3649a44e0
Move userdata-related top-level modules into the userdata module
2024-07-31 13:42:36 +01:00
Alex Orlenko
7221051683
Refactor:
...
- Remove the rest of `'lua` lifetimes
- Remove Owned types
2024-07-31 13:42:35 +01:00
Alex Orlenko
884a025b52
Fix some clippy warnings
2024-06-18 16:09:08 +01:00
Alex Orlenko
d48a2b3f6c
Add OwnedThread type (unstable)
2023-08-12 21:18:12 +01:00
Alex Orlenko
51a2959312
Add v0.9 release notes
...
Prepare v0.9-rc.2 release
2023-07-28 00:07:31 +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
2277ee4860
Rename UserDataRegistrar to LuaUserDataRegistry
2023-07-11 22:15:15 +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
20826a69ae
Re-export ffi crate (mlua-sys)
2023-07-09 11:31:59 +01:00
Alex Orlenko
1f0e81c9a1
Add a dedicated type for Luau vector.
...
Refactor existing implementation and add 4-dimensional vectors support.
2023-06-20 13:30:42 +01:00
Alex Orlenko
cea2d7fd15
Refactor application data container.
...
Now it's allowed at the same time mutably and immutably borrow different types.
Each value in the application data container is stored in it's own `RefCell` wrapper.
Also added new function `Lua::try_set_app_data()`.
2023-05-29 00:30:31 +01:00
Alex Orlenko
3d7796de55
clippy
2023-05-27 22:08:42 +01:00
Alex Orlenko
a1d385c7b7
Add OwnedString
2023-04-26 23:17:27 +01:00
Alex Orlenko
0fccdfed5c
Fix feature flags for owned types
2023-04-14 01:17:26 +01:00
Alex Orlenko
aaf0a5e44a
Remove usage of crate::ffi (clippy)
2023-04-14 00:36:31 +01:00
Alex Orlenko
f9d1213c4b
Don't set html_root_url (it's not recommended)
2023-04-13 22:44:40 +01:00
Alex Orlenko
15dc0e9f23
Move ffi module into mlua-sys crate
2023-04-12 23:23:34 +01:00
Alex Orlenko
6fa0a78ec0
Prepare v0.9.0-beta.1
2023-03-30 23:18:10 +01:00
Alex Orlenko
e182d474e0
More user-friendly error message about missing value for name attribute in module macro
...
Update the `[lua_module]` doc
2023-03-28 16:27:16 +01:00
Alex Orlenko
d9aac08b81
Support setting memory limit for Lua 5.1/JIT/Luau
...
Other versions already support this feature.
Closes #119
2023-03-26 00:06:52 +00:00
Alex Orlenko
781ded573a
Seal LuaSerdeExt/TableExt/AnyUserDataExt
2023-03-19 02:38:21 +00:00
Alex Orlenko
8d80321738
Add ErrorContext extension trait to attach additional context to Error
2023-03-17 01:20:57 +00:00
Alex Orlenko
3059f82552
Update README and CHANGELOG
2023-03-12 23:54:19 +00:00
Alex Orlenko
4a3f6d60ad
Update exports in libs and prelude
2023-03-02 15:34:42 +00:00
Alex Orlenko
68b60e2a0a
Add UserDataRef and UserDataRefMut types that implement FromLua
...
and can be used as accessors to underlying `AnyUserData` type.
2023-02-26 21:52:28 +00:00
Alex Orlenko
94f01e597c
Add AnyUserDataExt trait with auxiliary functions for AnyUserData
2023-02-18 23:40:28 +00:00
Alex Orlenko
f52abf919e
Add create_userdata_ref/create_userdata_ref_mut for scope ( #206 )
...
New methods would allow creating userdata objects from (mutable) reference
to a UserData of registered type.
2023-02-12 16:37:02 +00:00
Alex Orlenko
a13c188de3
Rename ToLua/ToLuaMulti -> IntoLua/IntoLuaMulti
2022-12-19 23:00:47 +00:00
Alex Orlenko
c60f633a62
Add "unstable" feature flag.
...
Hide owned types under the new feature flag.
Drop OwnedString/OwnedThread types (unlikely they are useful).
2022-12-19 22:26:44 +00:00
Alex Orlenko
bf79d9e75d
Initial implementation of owned Lua types
2022-12-18 00:35:41 +00:00
Alex Orlenko
6807dfa22e
v0.8.6
2022-11-07 01:05:14 +00:00
Alex Orlenko
693a808b6e
v0.8.5
2022-10-30 12:31:26 +00:00
Alex Orlenko
7f14d93c2b
v0.8.4
2022-10-09 14:40:15 +01:00
Alex Orlenko
83ed442bf9
v0.8.3
2022-08-02 12:43:15 +01:00
Alex Orlenko
185fee956d
v0.8.2
2022-07-25 14:23:25 +01:00
Alex Orlenko
b46b476f80
v0.8.1
2022-06-29 15:41:22 +01:00
Alex Orlenko
4afca8f5bb
Prepare for v0.8.0 release
2022-06-02 22:44:07 +01:00
Alex Orlenko
4f06f614a9
v0.8.0-beta.5
2022-05-25 01:47:38 +01:00
Alex Orlenko
0076aa735a
Add Function::coverage for Luau to obtain coverage report
2022-05-24 02:01:46 +01:00
Alex Orlenko
32a3f478bd
v0.8.0-beta.4
2022-04-25 23:18:27 +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
d607039a31
v0.8.0-beta.3
2022-04-03 23:38:41 +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
595bc3a2b3
Support Luau interrupts ( closes #138 )
2022-03-30 22:01:06 +01:00
Alex Orlenko
ec1fa04085
Update docs
2022-03-25 00:43:54 +00:00
Alex Orlenko
c6d3727171
Prepare v0.8.0-beta.1
2022-03-21 01:37:08 +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
32124b31a0
Move chunks structs to a new module.
...
Add Luau Compiler interface to compile sources.
2022-03-21 01:08:47 +00:00
Alex Orlenko
3e5f8e7bb8
Enable Lua::inspect_stack for Luau
2022-03-21 01:08:47 +00:00