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
|
c58f67b140
|
Add MaybeSend requirement to Lua futures
|
2024-08-10 17:55:39 +01:00 |
|
Alex Orlenko
|
8e14b6e40b
|
Fix tests
|
2024-08-04 22:22:02 +01:00 |
|
Alex Orlenko
|
4082b354fe
|
clippy
|
2024-08-01 00:55:10 +01:00 |
|
Alex Orlenko
|
3641c98959
|
Prepare for Rust 2024 edition (see rust-lang/rust#123748)
Replace `IntoLua(Multi)` generic with positional arg (impl trait) where possible
This allow to shorten syntax from `a.get::<_, T>` to `a.get::<T>`
|
2024-07-31 23:42:43 +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
|
d17dc54645
|
Rewrite call_async in traits to use impl Future instead of LocalBoxFuture.
More use `std::future` types instead of `future-utils`.
|
2024-07-31 13:42:36 +01:00 |
|
Alex Orlenko
|
baa8895cfb
|
Optimize creation of userdata callbacks (registry)
|
2024-07-31 13:42:36 +01:00 |
|
Alex Orlenko
|
550d6b2991
|
Remove wrapped UserData impl (Rc/Arc/etc)
|
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 |
|