Commit Graph

  • 1754226c74 Impl IntoLua::push_into_stack for integers Alex Orlenko 2024-02-03 21:32:49 +00:00
  • 3014c4d7a1 Add REF_STACK_RESERVE constant Alex Orlenko 2024-02-02 23:26:33 +00:00
  • 908f37656a Add to_pointer function to Function/Table/Thread Alex Orlenko 2024-02-02 09:23:16 +00:00
  • f4d783cb41 Impl push_into_stack for StdResult Alex Orlenko 2024-02-01 09:30:42 +00:00
  • f5982bc204 Add inline to FromLua<bool>::from_stack Alex Orlenko 2024-01-27 14:40:32 +00:00
  • e30b425224 Fix crash when initializing Luau sandbox without stdlibs (#361) Alex Orlenko 2024-01-27 11:51:59 +00:00
  • 512921404c Add fastpath push_into_stack/from_stack methods for bool type Alex Orlenko 2024-01-26 14:07:56 +00:00
  • dfd82edc42 Add Lua::push() helper Alex Orlenko 2024-01-26 13:52:19 +00:00
  • 75a15ceabf v0.9.5 v0.9.5 Alex Orlenko 2024-01-25 22:24:58 +00:00
  • 60730fd068 Update compile tests messages Alex Orlenko 2024-01-25 18:19:16 +00:00
  • df778b7b33 Impl Into/FromLua for OwnedString Alex Orlenko 2024-01-25 18:04:55 +00:00
  • 45299c0ef1 Update authors Alex Orlenko 2024-01-25 12:56:57 +00:00
  • 38eec1236c Update itertools dependency Alex Orlenko 2024-01-25 10:49:39 +00:00
  • 145c5b316b Fix FromLua derive proc macro to cover more cases Alex Orlenko 2024-01-25 10:26:43 +00:00
  • e97e69a309 Update Luau to 0.609 (luau-src v0.8.0) Alex Orlenko 2024-01-25 09:35:40 +00:00
  • 2ac7b23596 Impl Into/FromLua for OwnedThread Alex Orlenko 2024-01-24 21:58:44 +00:00
  • 8200bee467 Implement IntoLua for ref to String/Table/Function/AnyUserData This would prevent cloning plus has better performance when pushing values to Lua stack (IntoLua::push_into_stack method) Alex Orlenko 2024-01-21 23:38:02 +00:00
  • fe6ab250bf Update codecov links after moving repo Alex Orlenko 2024-01-23 21:56:00 +00:00
  • 804972b099 Fix typos in examples/guided_tour Alex Orlenko 2024-01-23 20:50:41 +00:00
  • 727f99ee4d Implement IntoLua for &RegistryKey This would allow just passing registry keys to arguments with fasttrack to push directly into stack. Alex Orlenko 2024-01-20 21:39:42 +00:00
  • 3c801e7b17 Expose internal POLL_PENDING constant (hidden) Alex Orlenko 2024-01-20 15:51:27 +00:00
  • a38e484fe9 Increase luau max stack size to 1M from 100k Alex Orlenko 2024-01-18 22:18:48 +00:00
  • eed48889cd v0.9.4 v0.9.4 Alex Orlenko 2024-01-10 15:41:31 +00:00
  • b5896173fd Include skip_memory_check code only when the corresponding attribute set for module Alex Orlenko 2024-01-10 10:08:33 +00:00
  • 205989f569 Fix edge case when loading many-in-one module from thread without using its state. If Lua previously been initialized in main thread and then new module was loaded from thread we reuse old state which confuses Lua loader. Alex Orlenko 2024-01-10 00:14:09 +00:00
  • 12472de1d2 v0.9.3 v0.9.3 Alex Orlenko 2024-01-08 21:02:45 +00:00
  • a68708c12e Update README & CHANGELOG Alex Orlenko 2024-01-08 18:44:49 +00:00
  • 4c0474d573 Fix docsrs attr for Thread::reset Alex Orlenko 2024-01-06 15:04:18 +00:00
  • 60e859f643 Fix (nightly) warning in doc Alex Orlenko 2024-01-06 12:55:18 +00:00
  • 9ed0d90746 Run tests for wasm32-unknown-emscripten Alex Orlenko 2024-01-04 20:44:53 +00:00
  • 514ec24252 Fix lua53/lua54 luaL_error definition (for wasm32) Alex Orlenko 2024-01-03 12:02:32 +00:00
  • 244e6c9c12 Bump rustyline dependency Alex Orlenko 2024-01-03 11:34:50 +00:00
  • 4749e3a22a Update minimal lua(u) versions (needed for wasm32) Alex Orlenko 2024-01-03 11:34:25 +00:00
  • cf153f38de Panic when try to build for wasm32 without vendored feature (except luau) Alex Orlenko 2024-01-03 11:33:42 +00:00
  • c0a0983025 mlua-sys: always inline lua_error Alex Orlenko 2024-01-03 11:31:39 +00:00
  • 69ff0c5509 mlua-sys: fix Lua 5.2 lua_sethook definition Alex Orlenko 2024-01-03 10:22:42 +00:00
  • bf79d6c212 Update lauxlib.rs (#351) Aymen-Hakim 2023-12-27 21:07:59 +01:00
  • 0b9a85e183 Add lua emscripten support (#338) ByteDream 2023-12-14 14:54:57 +00:00
  • 59974d7bde Merge pull request #337 from tari/emscripten-support Alex Orlenko 2023-12-13 13:55:26 +00:00
  • 61e846326c Update Cargo.toml (#342) Joel Natividad 2023-12-10 12:04:37 -05:00
  • 3547985bb0 Merge pull request #339 from eatradish/fix-loongarch64-build Alex Orlenko 2023-12-08 09:13:07 +00:00
  • 4c92580201 Add loongarch64 architecture support eatradish 2023-12-08 11:16:52 +08:00
  • e3f34f319c Correct C return type for lua_error Peter Marheine 2023-12-06 21:16:52 +11:00
  • b16f3895a0 lua54: use changed return type for lua_rawlen Peter Marheine 2023-12-06 21:09:25 +11:00
  • a4c919231c Don't clone function name when calling async userdata method Alex Orlenko 2023-12-03 19:55:27 +00:00
  • e4d6e92287 (async) Move "pending" poll value from env to poll_future() results Alex Orlenko 2023-12-02 15:01:40 +00:00
  • 642201a7e0 Remove locals from __mlua_async_poll helper Alex Orlenko 2023-12-01 18:11:06 +00:00
  • c36808b251 Faster Function::call() for lua51/jit/luau Alex Orlenko 2023-12-01 11:59:56 +00:00
  • 2022de2156 v0.9.2 v0.9.2 Alex Orlenko 2023-11-21 22:35:59 +00:00
  • 66e01548ce Update Luau+windows require dylib failed test Alex Orlenko 2023-11-20 22:16:44 +00:00
  • 93b505cff9 Integrate Luau package into mlua api. Eg. Lua::load_from_std_lib with StdLib::PACKAGE is now supported for Luau. Alex Orlenko 2023-11-20 09:56:36 +00:00
  • 44f5688c32 Include luau to ci module tests Alex Orlenko 2023-11-16 17:54:40 +00:00
  • 2bee5ed33a Support binary modules for Luau on cfg(unix) Alex Orlenko 2023-11-16 15:54:25 +00:00
  • 2d775695ef Rewrite Luau require function to support module loaders. Also add package library with path/loaded/loaders. Alex Orlenko 2023-11-16 14:11:24 +00:00
  • 34476ebf53 Support LuaJIT cdata type (produced by ffi module) Alex Orlenko 2023-11-16 13:33:23 +00:00
  • 5043447f23 Support Luau buffer type and and library. Buffer is an object that represents a fixed-size mutable block of memory and added to Luau 0.601. See https://luau-lang.org/library#buffer-library for more details. Alex Orlenko 2023-11-16 12:55:58 +00:00
  • b879abc418 Add lua_newuserdata_t helper to mlua-sys/luau Alex Orlenko 2023-10-24 23:57:11 +01:00
  • a1e39a8620 Remove MemoryState from ExtraData and retrieve using lua_getallocf (recently added to Luau) Alex Orlenko 2023-10-23 23:50:01 +01:00
  • f5021daaea Fix typo in table_traversal_sequence becnhmark Alex Orlenko 2023-10-12 11:07:00 +01:00
  • ec0fb7614e Optimize Table serialization (faster traversal) Alex Orlenko 2023-10-12 10:37:52 +01:00
  • 04c0763146 Optimize iterating over array part of table Alex Orlenko 2023-10-12 09:52:34 +01:00
  • 7d0aa7c01b Add "table traversal sequence" benchmark Alex Orlenko 2023-10-12 09:49:36 +01:00
  • 2a3980ef62 Add Table::for_each method for fast (faster than pairs()) table pairs traversal. Alex Orlenko 2023-10-10 12:52:26 +01:00
  • adb979761e Optimize table traversal (pairs iterator). Alex Orlenko 2023-10-10 11:25:21 +01:00
  • 37d722d71c Add table traversal benchmark Alex Orlenko 2023-10-10 11:00:58 +01:00
  • 6e3af593f6 Add serde benchmark Alex Orlenko 2023-10-10 00:25:47 +01:00
  • 54c14cc5b8 Update luajit (vendored) to 210.5.0 This includes switch from openresty's to vanilla luajit Alex Orlenko 2023-09-29 12:57:29 +01:00
  • 7f0de5790a Update github CI actions/checkout to v4 Alex Orlenko 2023-09-13 12:03:50 +01:00
  • 6488477bc4 rustfmt 1.72+ Alex Orlenko 2023-08-27 23:26:27 +01:00
  • 53b7b5b70b Fix setting userdata (static) fields when it has __index metamethod/function. Closes #312 Alex Orlenko 2023-08-27 23:01:37 +01:00
  • fc159e0c46 v0.9.1 v0.9.1 Alex Orlenko 2023-08-24 01:41:32 +01:00
  • a802276c56 Fix an edge case when using invalidated (relative) userdata index after processing varargs. This causes Lua API correctness check assertion in debug mode. Fixes #311. Alex Orlenko 2023-08-24 00:54:50 +01:00
  • 65b816f2f0 Update README Alex Orlenko 2023-08-21 22:00:04 +01:00
  • e2b3464ec9 impl IntoLuaMulti for StdResult<(), E> Alex Orlenko 2023-08-20 14:05:39 +01:00
  • 89cf5bf362 impl Default for Lua Alex Orlenko 2023-08-20 12:15:25 +01:00
  • bb0a6070c4 v0.9.0 v0.9.0 Alex Orlenko 2023-08-17 11:38:42 +01:00
  • 60f1c16ddb mlua-sys: v0.3.2 Alex Orlenko 2023-08-16 14:54:52 +01:00
  • 17809a390c mlua_derive: v0.9.0 Alex Orlenko 2023-08-16 01:25:12 +01:00
  • 84811b1be3 v0.8.10 v0.8.10 v0.8 Alex Orlenko 2023-08-16 00:20:05 +01:00
  • 032d4af896 Fix loading luau code starting with \t Alex Orlenko 2023-07-22 18:44:44 +01:00
  • c9099a4364 Update to Luau 0.590 Alex Orlenko 2023-08-16 00:15:05 +01:00
  • e4eeee05c4 Pin (more strict) lua-src and luajit-src versions Alex Orlenko 2023-08-16 00:09:20 +01:00
  • 7662a7e4ff Update non-static (scoped) userdata: - Use the new stack api - Support static fields constructor - Better error messages (on bad arguments) Alex Orlenko 2023-08-15 01:15:36 +01:00
  • d769a95fc5 Add Scope::create_any_userdata() Alex Orlenko 2023-08-14 17:39:51 +01:00
  • 0e4476c2e3 Add Lua::set_vector_metatable() method (unstable) Alex Orlenko 2023-08-12 22:43:13 +01:00
  • d48a2b3f6c Add OwnedThread type (unstable) Alex Orlenko 2023-08-12 21:18:12 +01:00
  • b3592bc23e Update mutable_globals pointer type to const (luau 0.590) Alex Orlenko 2023-08-12 17:43:25 +01:00
  • 052310e93d Update doc for deny_unsupported_types option Alex Orlenko 2023-08-12 17:40:39 +01:00
  • 09eb7f251b Support options for Value::serialize() implementation To match lua.from_value_with() functionality. Alex Orlenko 2023-08-12 17:14:39 +01:00
  • c137da7618 Update to Luau 0.590 Alex Orlenko 2023-08-12 14:12:59 +01:00
  • c0c6a33f94 Add new option sort_keys to DeserializeOptions (Lua::from_value method) Closes #303 Alex Orlenko 2023-08-07 11:44:52 +01:00
  • 0cb0a345dd Hide clippy warning converting i32 to i32 Alex Orlenko 2023-08-07 11:44:35 +01:00
  • 3e479be4e5 Cosmetic changes for the Value conversions + add tests Alex Orlenko 2023-08-06 23:41:27 +01:00
  • 170aa53e29 Change Table::raw_len() output type to usize. Alex Orlenko 2023-08-03 21:57:18 +01:00
  • 021ee946fc Add helper functions to Value (#299) Akase Cho 2023-08-07 05:44:32 +08:00
  • 0b928fdfee Faster table ops Alex Orlenko 2023-08-03 10:37:52 +01:00
  • e858384cd4 Add table get/set benchmark Alex Orlenko 2023-08-03 10:37:39 +01:00
  • c062cddd87 Fastpath IntoLua/FromLua for StdString and &str This includes direct push to Lua stack and getting value from Lua stack. Alex Orlenko 2023-08-03 10:02:20 +01:00
  • 94a79656ad Faster Function::call() Alex Orlenko 2023-08-03 01:16:52 +01:00
  • cd0c8a4584 Optimize async functionality: Rewrite using the new push_into_stack()/from_stack() methods. Also store thread state (pointer) in Thread struct to avoid getting it every time. Async userdata methods still need to have arguments stored in ref thread as stack is empty on every poll(). Alex Orlenko 2023-08-03 00:56:17 +01:00