Commit Graph

  • 3dc58cdfc9 Move Luau Vector type to top level Alex Orlenko 2024-10-22 22:39:54 +01:00
  • 5724b5f112 cargo fmt Alex Orlenko 2024-10-20 13:23:57 +01:00
  • d64d9719c6 Replace Either enum with implementation from either crate Alex Orlenko 2024-10-20 12:06:08 +01:00
  • 75475fc9a8 Add missing serde::{de, ser} top level comment Alex Orlenko 2024-10-20 11:52:13 +01:00
  • f8fe9246bb Bump TARGET_MLUA_LUAU_ABI_VERSION Alex Orlenko 2024-10-20 10:42:59 +01:00
  • 5c54361236 Keep stack in FromLuaMulti::from_stack_multi Alex Orlenko 2024-10-20 00:47:20 +01:00
  • ec227f9056 Optimize Table readonly check (Luau) Optimize Table::has_metatable check. Alex Orlenko 2024-10-19 23:58:57 +01:00
  • 93a1a55aaa Update docs Alex Orlenko 2024-10-19 23:10:30 +01:00
  • a020b2b5b2 Remove functions deprecated in v0.9 Alex Orlenko 2024-10-19 15:14:09 +01:00
  • 2c756e5958 Add back Lua::load_from_std_lib (with deprecated flag) Alex Orlenko 2024-10-19 15:13:42 +01:00
  • c702077028 More Lua values conversion tests Alex Orlenko 2024-10-19 15:08:51 +01:00
  • 08545224f4 clippy Alex Orlenko 2024-10-19 11:49:40 +01:00
  • e122f90837 More Either tests Alex Orlenko 2024-10-19 11:20:25 +01:00
  • c638d90b02 Fix test_inspect_stack Alex Orlenko 2024-10-19 00:11:05 +01:00
  • 930fd9c00f Fix Value::String::to_pointer for Lua < 5.4 Alex Orlenko 2024-10-18 23:08:43 +01:00
  • 2a8db87132 Update Value tests Alex Orlenko 2024-10-18 22:50:31 +01:00
  • cbae4fe59c More async tests Alex Orlenko 2024-10-18 22:50:15 +01:00
  • c68e3c4f41 Some DebugStack improvements Alex Orlenko 2024-10-18 22:45:26 +01:00
  • 02d4ceff34 Make Thread::state non-const (private api) Alex Orlenko 2024-10-18 21:50:57 +01:00
  • 98339c57e6 Update userdata tests Alex Orlenko 2024-10-18 21:38:02 +01:00
  • 2331995e28 Update coverage ci options Alex Orlenko 2024-10-18 21:36:49 +01:00
  • c07bdce250 More scope tests Alex Orlenko 2024-10-17 17:03:31 +01:00
  • 084a85c3d8 Update error tests Alex Orlenko 2024-10-16 23:57:48 +01:00
  • 735aa22be9 Fix typo in chunk tests Alex Orlenko 2024-10-16 23:57:07 +01:00
  • 5479546b27 Update chunk tests Alex Orlenko 2024-10-16 21:54:22 +01:00
  • 179c54f297 Remove generic from Table::equals and Value::equals Alex Orlenko 2024-10-16 16:11:39 +01:00
  • f9ae4bf05f Update table tests Alex Orlenko 2024-10-16 16:00:01 +01:00
  • 9e16e18132 Update string tests Alex Orlenko 2024-10-16 15:58:52 +01:00
  • 7535a23fa2 Update function tests Alex Orlenko 2024-10-16 15:46:37 +01:00
  • 3787ff9e8c Optimize metatable pointer lookup for userdata (Luau) Alex Orlenko 2024-10-12 21:37:18 +01:00
  • 0a2a70c15a mlua-sys: v0.6.4 Alex Orlenko 2024-10-12 21:32:08 +01:00
  • 81d7c81532 Update Luau to 0.647 Alex Orlenko 2024-10-12 21:30:56 +01:00
  • 0453029765 v0.10.0-rc.1 v0.10.0-rc.1 Alex Orlenko 2024-10-08 23:00:04 +01:00
  • 7b777d074e Update README Alex Orlenko 2024-10-08 22:57:32 +01:00
  • c6cd1c53c3 Update CHANGELOG Alex Orlenko 2024-10-08 22:57:18 +01:00
  • 669349d704 mlua_derive: v0.10.0-rc.1 Alex Orlenko 2024-10-08 22:40:07 +01:00
  • c086c144d0 Use impl IntoIterator in Lua::create_table_from/create_sequence_from Alex Orlenko 2024-10-08 11:53:31 +01:00
  • 640cb2c182 Add _unguarded to RawLua::app_data_ref (for internal use only) Alex Orlenko 2024-10-07 13:00:57 +01:00
  • 03a4068d55 Move MultiValue from value to multi module Alex Orlenko 2024-10-07 12:06:13 +01:00
  • 9f6c78532f Move IntoLua/FromLua and IntoLuaMulti/FromLuaMulti to traits module Alex Orlenko 2024-10-07 10:32:50 +01:00
  • 8aecc83f53 clippy Alex Orlenko 2024-10-06 22:48:58 +01:00
  • 4891b6535c Remove const from Value::type_name Alex Orlenko 2024-10-06 11:10:47 +01:00
  • fa343c2c69 More optimal OsStr/Path conversion to Lua Alex Orlenko 2024-10-06 22:45:36 +01:00
  • 6d5e735bed Add IntoLua/FromLua for OsString/OsStr and PathBuf/Path (#459) psentee 2024-10-06 14:43:20 +02:00
  • ac315fd80b Add AnyUserData::wrap_ser function Alex Orlenko 2024-10-06 11:09:34 +01:00
  • f95161c6e0 Add missing documentation for Function::wrap_raw* functions Alex Orlenko 2024-10-05 23:26:03 +01:00
  • 4bc846a119 Add optional anyhow dependency (under the same feature flag) to implement IntoLua for anyhow::Error Alex Orlenko 2024-10-05 23:16:36 +01:00
  • a3ca95fc8f Include Value::Other variant into Value::to_pointer() helper. Closes #465 Alex Orlenko 2024-10-04 10:33:56 +01:00
  • ae4897ab2e Add Value::is_error and Value::as_error helpers Alex Orlenko 2024-10-02 12:59:04 +01:00
  • 4ac87c7208 Derive PartialEq instead of implementing manually Alex Orlenko 2024-10-02 12:21:04 +01:00
  • 04d8106676 Remove SubtypeId from AnyUserData and instead add Value::Other variant that will cover any unknown types (eg. LuaJIT CData) Alex Orlenko 2024-10-02 12:16:48 +01:00
  • b6cdf32f16 Update MSRV in README Alex Orlenko 2024-10-01 23:21:28 +01:00
  • ad9bc36764 impl Eq/Ord for Lua String Alex Orlenko 2024-10-01 23:20:19 +01:00
  • 4b8c26e682 Invoke __tostring metamethod when calling Value::to_string() for Buffer type Alex Orlenko 2024-10-01 22:59:19 +01:00
  • 7839c4438c Fix compilation warnings Alex Orlenko 2024-10-01 22:28:47 +01:00
  • 529361fcbc Add new Buffer type for Luau. Previously it was represented as AnyUserData which is not always convenient. Alex Orlenko 2024-10-01 15:21:19 +01:00
  • 4dddf3c18d Use fmt::Debug implementation for Lua string from bstr Alex Orlenko 2024-09-26 22:46:02 +01:00
  • fb0c0d9ee9 Add Either<L, R> enum to combine two types into a single one. It implements FromLua and IntoLua traits for easy type conversions.. Alex Orlenko 2024-09-26 18:58:28 +01:00
  • 235c32006c Rename Lua::with_raw_state to Lua::exec_raw Alex Orlenko 2024-09-24 23:11:16 +01:00
  • b65901e444 Add Error::chain method to return iterator over nested errors Alex Orlenko 2024-09-24 22:48:19 +01:00
  • 91fe02da45 Add LuaNativeFn/LuaNativeFnMut/LuaNativeAsyncFn traits for using in Function::wrap Alex Orlenko 2024-09-24 14:31:28 +01:00
  • 8274b5fa88 More user-friendly error message on userdata mismatch Alex Orlenko 2024-09-23 15:56:29 +01:00
  • 762e677a70 Update Error matching code This is mostly cosmetic change. Alex Orlenko 2024-09-23 15:53:08 +01:00
  • 5b5f1e4669 Remove undocumented Lua::push in favour of Lua::with_raw_state Alex Orlenko 2024-09-23 11:14:24 +01:00
  • e582e7c57f Rename get_metatable to metatable for Table/AnyUserData types Alex Orlenko 2024-09-23 11:13:13 +01:00
  • 3714da5ec8 Fix doc test for Lua::set_type_metatable Alex Orlenko 2024-09-23 11:01:32 +01:00
  • ca69be07ff Support setting metatable for Lua builtin types. Closes #445 Alex Orlenko 2024-09-23 10:45:57 +01:00
  • 16951e3628 Move ValueRef to a new module Alex Orlenko 2024-09-22 23:58:53 +01:00
  • 8bb2b444ab Run tests with forced memory limit checks Alex Orlenko 2024-09-22 23:20:18 +01:00
  • fc1570d2d7 Support yielding from hooks for Lua 5.3+ Alex Orlenko 2024-09-22 19:04:32 +01:00
  • fce85381c6 Fix clippy warnings Alex Orlenko 2024-09-22 18:59:59 +01:00
  • 3088516851 Update luaL_checkstack messages Alex Orlenko 2024-09-22 17:33:28 +01:00
  • 5162a0f46e Add Lua::with_raw_state to provide easy low-level access to the Lua state. Alex Orlenko 2024-09-22 11:25:38 +01:00
  • 640d27697d Fix compile error in non-send mode Alex Orlenko 2024-09-20 21:20:52 +01:00
  • da4404baa5 Add Lua::scope back Alex Orlenko 2024-09-20 13:01:55 +01:00
  • 7c2e9b5a7c v0.10.0-beta.2 v0.10.0-beta.2 Alex Orlenko 2024-09-07 23:47:21 +01:00
  • 5db545e7b4 mlua_derive: v0.10.0-beta.1 Alex Orlenko 2024-09-07 23:46:13 +01:00
  • b88228b3d4 Update CHANGELOG Alex Orlenko 2024-09-07 23:43:20 +01:00
  • 8677b57847 Update README Alex Orlenko 2024-09-07 23:27:35 +01:00
  • 7543b0674e mlua-sys: v0.6.3 Alex Orlenko 2024-09-07 23:23:32 +01:00
  • 8e111058c3 Make BorrowedBytes/BorrowedStr: Send + Sync They are immutable and don't require holding a lock Alex Orlenko 2024-09-07 23:17:25 +01:00
  • e1c0aa8491 Fix test test_integer_from_lua Alex Orlenko 2024-09-07 16:50:28 +01:00
  • 7957c6868d Fastpath for LuaString/integer/float conversion from Lua Alex Orlenko 2024-09-07 12:24:50 +01:00
  • 9c86eefb76 Update documentation of traits to match the expected argument name (#447) Caleb Maclennan 2024-09-06 21:28:40 +03:00
  • 7272e40c23 Faster non-scoped callbacks Alex Orlenko 2024-09-03 01:34:55 +01:00
  • c6ef393ce9 Turn Lua::entrypoint() to constructor (don't require initializing Lua first) Alex Orlenko 2024-09-02 23:43:52 +01:00
  • d25f2fc07c Take Table instead of impl IntoLua in Chunk::set_environment() Alex Orlenko 2024-09-01 22:49:12 +01:00
  • 104e242ddd Some cosmetic changes Alex Orlenko 2024-09-01 22:47:00 +01:00
  • 825bdbfa04 Use dynamic Lua state ownership instead of compile-time module cfg flag to allow creating new VMs in module mode (and destructing them properly). Alex Orlenko 2024-08-31 22:52:55 +01:00
  • 1634c43f0a Disable send feature in module mode We don't have exclusive access to Lua VM and cannot provide Sync soundness Alex Orlenko 2024-08-30 23:37:13 +01:00
  • d6b27de34e Optimize ObjectLike::to_string for tables and userdata Alex Orlenko 2024-08-30 22:55:53 +01:00
  • 4018a17e26 Combine TableExt and AnyUserDataExt traits into ObjectLike Alex Orlenko 2024-08-30 22:50:03 +01:00
  • 5ebbc0868c More inline const expressions Alex Orlenko 2024-08-29 22:05:28 +01:00
  • 3774296835 Run gargabe collection on main Lua instance drop This should help preventing leaking memory when capturing Lua in async block and dropping future without finishing polling. Alex Orlenko 2024-08-29 11:59:52 +01:00
  • ece66c46bf Remove unstable feature flag Alex Orlenko 2024-08-26 23:51:58 +01:00
  • 66b4a865c2 Remove MultiValue pool Alex Orlenko 2024-08-26 11:26:12 +01:00
  • 21149106ee Remove drop field from ValueRef Alex Orlenko 2024-08-26 11:18:17 +01:00
  • 74bebe6da3 Add optional Send requirement to internall callbacks Alex Orlenko 2024-08-26 11:13:06 +01:00
  • 9891e86d16 Remove Clone requirement from UserDataFields::add_field() Alex Orlenko 2024-08-26 11:10:34 +01:00
  • e3c5cfdf19 Extract registry_key and vector modules from types Alex Orlenko 2024-08-26 00:09:06 +01:00