Alex Orlenko
|
a7d0691e10
|
Add AnyUserData::destroy method
|
2024-11-07 16:12:20 +00:00 |
|
Alex Orlenko
|
1f32754f05
|
Relax UserDataBorrowRef restrictions to allow recursive calls
|
2024-11-03 12:18:00 +00:00 |
|
Alex Orlenko
|
bb311349ec
|
Switch between shared and exclusive lock for UserDataRef depending if T: Sync or not.
|
2024-11-02 10:38:25 +00:00 |
|
Alex Orlenko
|
6066089cc1
|
Skip setting Send/Sync in non-send mode for UserDataCell
|
2024-10-30 23:32:13 +00:00 |
|
Alex Orlenko
|
93a1a55aaa
|
Update docs
|
2024-10-19 23:10:43 +01:00 |
|
Alex Orlenko
|
08545224f4
|
clippy
|
2024-10-19 11:49:40 +01:00 |
|
Alex Orlenko
|
9f6c78532f
|
Move IntoLua/FromLua and IntoLuaMulti/FromLuaMulti to traits module
|
2024-10-07 10:32:50 +01:00 |
|
Alex Orlenko
|
fb0c0d9ee9
|
Add Either<L, R> enum to combine two types into a single one.
It implements `FromLua` and `IntoLua` traits for easy type conversions..
|
2024-09-26 18:58:28 +01:00 |
|
Alex Orlenko
|
8274b5fa88
|
More user-friendly error message on userdata mismatch
|
2024-09-23 15:56:29 +01:00 |
|
Alex Orlenko
|
fce85381c6
|
Fix clippy warnings
|
2024-09-22 19:02:16 +01:00 |
|
Alex Orlenko
|
640d27697d
|
Fix compile error in non-send mode
|
2024-09-20 21:20:52 +01:00 |
|
Alex Orlenko
|
da4404baa5
|
Add Lua::scope back
|
2024-09-20 13:01:55 +01:00 |
|
Alex Orlenko
|
23d4e2519b
|
Switch to Mutex from RwLock for userdata access in send mode.
Unfortunately RwLock allow access to the userdata from multiple threads
without enforcing `Sync` marker.
|
2024-08-24 09:44:39 +01:00 |
|
Alex Orlenko
|
9931709ecd
|
Remove explicit lifetime from UserDataMethods and UserDataFields traits.
Pass `'static` arguments to async functions and require `'static` Future.
(in future we can use async closures to make it more elegant).
|
2024-08-23 00:10:29 +01:00 |
|
Alex Orlenko
|
b4892c228c
|
Add rustfmt.toml
|
2024-07-31 13:42:37 +01:00 |
|
Alex Orlenko
|
c1395ab543
|
clippy
|
2024-07-31 13:42:37 +01:00 |
|
Alex Orlenko
|
cd6d86a5ce
|
Split single lua module to multiple submodules under state
|
2024-07-31 13:42:37 +01:00 |
|
Alex Orlenko
|
baa8895cfb
|
Optimize creation of userdata callbacks (registry)
|
2024-07-31 13:42:36 +01:00 |
|
Alex Orlenko
|
b3649a44e0
|
Move userdata-related top-level modules into the userdata module
|
2024-07-31 13:42:36 +01:00 |
|