Alex Orlenko
3bfaee4ecc
Delay "any" userdata metatable creation until first instance
2024-11-16 01:47:04 +00:00
Alex Orlenko
89b68e2a24
Remove generic from RawLua::push_userdata_metatable.
...
This should help to reduce amount of generated code.
2024-11-16 01:44:17 +00:00
Alex Orlenko
cbf805f492
Avoid ptr->usize->ptr conversion to comply strict provenance
2024-11-15 21:47:19 +00:00
Alex Orlenko
c926327a6a
v0.10.1
v0.10.1
2024-11-09 20:06:04 +00:00
Alex Orlenko
7c099500d0
mlua-sys: v0.6.5
2024-11-09 14:30:33 +00:00
Alex Orlenko
8c889cc353
Add String::display method
2024-11-09 14:24:43 +00:00
Alex Orlenko
958abd050e
Update String::to_string_lossy doc
2024-11-09 14:10:45 +00:00
Alex Orlenko
92a8203e1c
Fix formatting
2024-11-09 13:58:06 +00:00
Alex Orlenko
b34b90eca3
Fix wrong formatting table with string keys that are numbers
2024-11-09 13:51:55 +00:00
Alex Orlenko
7aad0adcb4
Update links to luau.org
2024-11-09 12:48:15 +00:00
Alex Orlenko
a3cd25db7a
Support Luau 0.650 native vector library
2024-11-09 12:44:00 +00:00
Alex Orlenko
a4bfeb7752
clippy
2024-11-09 12:38:05 +00:00
vhyrro
0fda512938
feat(table): improve pretty-printing for simple tables and lists ( #478 )
2024-11-09 12:08:49 +00:00
Alex Orlenko
58e0661086
Merge Scope::attach_destructor into Scope::seal_userdata
2024-11-08 15:04:46 +00:00
Alex Orlenko
c7094d470f
Add Scope::create_any_userdata to create Lua objects from any non-static Rust types.
2024-11-07 19:44:18 +00:00
Alex Orlenko
a7d0691e10
Add AnyUserData::destroy method
2024-11-07 16:12:20 +00:00
Alex Orlenko
05778fbe6f
Don't store and use wrong main Lua state in module mode (Lua 5.1/JIT only).
...
When mlua module is loaded from a non-main coroutine we store a reference to it to use later.
If the coroutine is destroyed by GC we can pass a wrong pointer to Lua that will trigger a segfault.
Instead, set main_state as Option and use current (active) state if needed.
Relates to #479
2024-11-04 15:48:22 +00:00
Alex Orlenko
b34d67ec41
Update Luau to 0.650 (luau0-src 0.11.1)
2024-11-03 14:49:12 +00:00
Alex Orlenko
46ee7ea772
Update tarpaulin.toml
2024-11-03 12:54:21 +00:00
Alex Orlenko
15738dda1f
Update tarpaulin.toml to include userdata-wrappers
2024-11-03 12:19:22 +00:00
Alex Orlenko
1f32754f05
Relax UserDataBorrowRef restrictions to allow recursive calls
2024-11-03 12:18:00 +00:00
Alex Orlenko
c2eab173c5
Add userdata-wrappers feature
...
This feature allow to opt into `impl UserData` for `Rc<T>`/`Arc<T>`/`Rc<RefCell<T>>`/`Arc<Mutex<T>>` where `T: UserData`
Close #470
2024-11-03 11:48:47 +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
928e1d9221
Revert &Scope to &mut Scope
2024-10-31 18:41:47 +00:00
Alex Orlenko
5b8681dcf2
Add Scope::add_destructor to attach custom destructors
2024-10-31 14:35:21 +00:00
Alex Orlenko
4e9a17707b
Fix tests
2024-10-31 09:23:03 +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
a8d5f23818
Add Lua::try_app_data_ref and Lua::try_app_data_mut
2024-10-30 15:22:55 +00:00
Alex Orlenko
5ec4e0338a
Add From<Vec> and Into<Vec> support to MultiValue and Variadic types
2024-10-30 13:03:08 +00:00
Alex Orlenko
d27d1365b5
Update v0.10 release notes (add breaking changes)
2024-10-30 00:42:31 +00:00
Alex Orlenko
76b896edcc
Fix attaching __gc metamethod
...
Bug introdused in ddebf56
2024-10-29 22:56:29 +00:00
Alex Orlenko
ddebf56b41
Defer metatable return on userdata creation until the end
...
Relates to #477
2024-10-29 21:22:34 +00:00
Alex Orlenko
4f56575e05
v0.10.0
v0.10.0
2024-10-25 13:36:55 +02:00
Alex Orlenko
35fa76263e
Update docs
2024-10-25 11:05:21 +02:00
Alex Orlenko
446d63a77e
More tests
2024-10-23 15:50:58 +01:00
Alex Orlenko
8d8d521721
Add error-send feature flag
2024-10-23 10:40:25 +01:00
Alex Orlenko
0d31a1caa6
Rename Error::MemoryLimitNotAvailable to Error::MemoryControlNotAvailable
2024-10-22 22:44:52 +01:00
Alex Orlenko
3dc58cdfc9
Move Luau Vector type to top level
2024-10-22 22:41:26 +01:00
Alex Orlenko
5724b5f112
cargo fmt
2024-10-20 13:23:57 +01:00
Alex Orlenko
d64d9719c6
Replace Either enum with implementation from either crate
2024-10-20 12:06:08 +01:00
Alex Orlenko
75475fc9a8
Add missing serde::{de, ser} top level comment
2024-10-20 11:52:13 +01:00
Alex Orlenko
f8fe9246bb
Bump TARGET_MLUA_LUAU_ABI_VERSION
2024-10-20 10:42:59 +01:00
Alex Orlenko
5c54361236
Keep stack in FromLuaMulti::from_stack_multi
2024-10-20 00:47:20 +01:00
Alex Orlenko
ec227f9056
Optimize Table readonly check (Luau)
...
Optimize `Table::has_metatable` check.
2024-10-19 23:58:57 +01:00
Alex Orlenko
93a1a55aaa
Update docs
2024-10-19 23:10:43 +01:00
Alex Orlenko
a020b2b5b2
Remove functions deprecated in v0.9
2024-10-19 15:14:09 +01:00
Alex Orlenko
2c756e5958
Add back Lua::load_from_std_lib (with deprecated flag)
2024-10-19 15:13:42 +01:00
Alex Orlenko
c702077028
More Lua values conversion tests
2024-10-19 15:08:51 +01:00
Alex Orlenko
08545224f4
clippy
2024-10-19 11:49:40 +01:00
Alex Orlenko
e122f90837
More Either tests
2024-10-19 11:20:25 +01:00