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
|
35fa76263e
|
Update docs
|
2024-10-25 11:05:21 +02: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
|
930fd9c00f
|
Fix Value::String::to_pointer for Lua < 5.4
|
2024-10-18 23:12:04 +01:00 |
|
Alex Orlenko
|
2a8db87132
|
Update Value tests
|
2024-10-18 22:50:48 +01:00 |
|
Alex Orlenko
|
c68e3c4f41
|
Some DebugStack improvements
|
2024-10-18 22:48:41 +01:00 |
|
Alex Orlenko
|
02d4ceff34
|
Make Thread::state non-const (private api)
|
2024-10-18 21:50:57 +01:00 |
|
Alex Orlenko
|
98339c57e6
|
Update userdata tests
|
2024-10-18 21:38:02 +01:00 |
|
Alex Orlenko
|
084a85c3d8
|
Update error tests
|
2024-10-16 23:57:48 +01:00 |
|
Alex Orlenko
|
5479546b27
|
Update chunk tests
|
2024-10-16 21:54:22 +01:00 |
|
Alex Orlenko
|
179c54f297
|
Remove generic from Table::equals and Value::equals
|
2024-10-16 16:11:48 +01:00 |
|
Alex Orlenko
|
f9ae4bf05f
|
Update table tests
|
2024-10-16 16:00:01 +01:00 |
|
Alex Orlenko
|
9e16e18132
|
Update string tests
|
2024-10-16 15:59:23 +01:00 |
|
Alex Orlenko
|
3787ff9e8c
|
Optimize metatable pointer lookup for userdata (Luau)
|
2024-10-12 21:38:07 +01:00 |
|
Alex Orlenko
|
c086c144d0
|
Use impl IntoIterator in Lua::create_table_from/create_sequence_from
|
2024-10-08 11:53:31 +01:00 |
|
Alex Orlenko
|
640cb2c182
|
Add _unguarded to RawLua::app_data_ref (for internal use only)
|
2024-10-07 13:37:41 +01:00 |
|
Alex Orlenko
|
03a4068d55
|
Move MultiValue from value to multi module
|
2024-10-07 13:37:39 +01:00 |
|
Alex Orlenko
|
9f6c78532f
|
Move IntoLua/FromLua and IntoLuaMulti/FromLuaMulti to traits module
|
2024-10-07 10:32:50 +01:00 |
|
Alex Orlenko
|
8aecc83f53
|
clippy
|
2024-10-06 22:48:58 +01:00 |
|
Alex Orlenko
|
4891b6535c
|
Remove const from Value::type_name
|
2024-10-06 22:45:56 +01:00 |
|
Alex Orlenko
|
fa343c2c69
|
More optimal OsStr/Path conversion to Lua
|
2024-10-06 22:45:36 +01:00 |
|
psentee
|
6d5e735bed
|
Add IntoLua/FromLua for OsString/OsStr and PathBuf/Path (#459)
|
2024-10-06 13:43:20 +01:00 |
|
Alex Orlenko
|
ac315fd80b
|
Add AnyUserData::wrap_ser function
|
2024-10-06 11:12:44 +01:00 |
|
Alex Orlenko
|
f95161c6e0
|
Add missing documentation for Function::wrap_raw* functions
|
2024-10-05 23:26:03 +01:00 |
|
Alex Orlenko
|
4bc846a119
|
Add optional anyhow dependency (under the same feature flag) to implement IntoLua for anyhow::Error
|
2024-10-05 23:16:36 +01:00 |
|
Alex Orlenko
|
a3ca95fc8f
|
Include Value::Other variant into Value::to_pointer() helper.
Closes #465
|
2024-10-04 10:33:56 +01:00 |
|
Alex Orlenko
|
ae4897ab2e
|
Add Value::is_error and Value::as_error helpers
|
2024-10-02 12:59:04 +01:00 |
|
Alex Orlenko
|
4ac87c7208
|
Derive PartialEq instead of implementing manually
|
2024-10-02 12:21:04 +01:00 |
|
Alex Orlenko
|
04d8106676
|
Remove SubtypeId from AnyUserData and instead add Value::Other variant that will cover any unknown types (eg. LuaJIT CData)
|
2024-10-02 12:16:48 +01:00 |
|
Alex Orlenko
|
ad9bc36764
|
impl Eq/Ord for Lua String
|
2024-10-01 23:20:19 +01:00 |
|
Alex Orlenko
|
4b8c26e682
|
Invoke __tostring metamethod when calling Value::to_string() for Buffer type
|
2024-10-01 22:59:19 +01:00 |
|
Alex Orlenko
|
7839c4438c
|
Fix compilation warnings
|
2024-10-01 22:28:47 +01:00 |
|
Alex Orlenko
|
529361fcbc
|
Add new Buffer type for Luau.
Previously it was represented as `AnyUserData` which is not always convenient.
|
2024-10-01 15:21:19 +01:00 |
|
Alex Orlenko
|
4dddf3c18d
|
Use fmt::Debug implementation for Lua string from bstr
|
2024-09-26 22:46:02 +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
|
235c32006c
|
Rename Lua::with_raw_state to Lua::exec_raw
|
2024-09-24 23:11:16 +01:00 |
|