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 |
|
Alex Orlenko
|
b65901e444
|
Add Error::chain method to return iterator over nested errors
|
2024-09-24 22:48:19 +01:00 |
|
Alex Orlenko
|
91fe02da45
|
Add LuaNativeFn/LuaNativeFnMut/LuaNativeAsyncFn traits for using in Function::wrap
|
2024-09-24 14:35:03 +01:00 |
|
Alex Orlenko
|
8274b5fa88
|
More user-friendly error message on userdata mismatch
|
2024-09-23 15:56:29 +01:00 |
|
Alex Orlenko
|
762e677a70
|
Update Error matching code
This is mostly cosmetic change.
|
2024-09-23 15:53:08 +01:00 |
|
Alex Orlenko
|
5b5f1e4669
|
Remove undocumented Lua::push in favour of Lua::with_raw_state
|
2024-09-23 11:14:24 +01:00 |
|
Alex Orlenko
|
e582e7c57f
|
Rename get_metatable to metatable for Table/AnyUserData types
|
2024-09-23 11:13:16 +01:00 |
|
Alex Orlenko
|
3714da5ec8
|
Fix doc test for Lua::set_type_metatable
|
2024-09-23 11:01:32 +01:00 |
|
Alex Orlenko
|
ca69be07ff
|
Support setting metatable for Lua builtin types.
Closes #445
|
2024-09-23 10:45:57 +01:00 |
|
Alex Orlenko
|
16951e3628
|
Move ValueRef to a new module
|
2024-09-22 23:58:53 +01:00 |
|
Alex Orlenko
|
8bb2b444ab
|
Run tests with forced memory limit checks
|
2024-09-22 23:20:18 +01:00 |
|
Alex Orlenko
|
fc1570d2d7
|
Support yielding from hooks for Lua 5.3+
|
2024-09-22 19:04:32 +01:00 |
|
Alex Orlenko
|
fce85381c6
|
Fix clippy warnings
|
2024-09-22 19:02:16 +01:00 |
|
Alex Orlenko
|
5162a0f46e
|
Add Lua::with_raw_state to provide easy low-level access to the Lua state.
|
2024-09-22 11:25:38 +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
|
8e111058c3
|
Make BorrowedBytes/BorrowedStr: Send + Sync
They are immutable and don't require holding a lock
|
2024-09-07 23:17:25 +01:00 |
|
Alex Orlenko
|
7957c6868d
|
Fastpath for LuaString/integer/float conversion from Lua
|
2024-09-07 12:25:35 +01:00 |
|
Caleb Maclennan
|
9c86eefb76
|
Update documentation of traits to match the expected argument name (#447)
|
2024-09-06 19:28:40 +01:00 |
|
Alex Orlenko
|
7272e40c23
|
Faster non-scoped callbacks
|
2024-09-03 01:34:55 +01:00 |
|