Commit graph

  • 7623016d4a
    Fix doc feature labels Alex Orlenko 2021-09-28 18:15:53 +0100
  • bdd3c923ba
    Fix table traversal used in recursion detection. This fixes serializing same table multiple times within a parent table. Alex Orlenko 2021-09-28 16:10:09 +0100
  • d586eef0f5
    Refactor UserData metatables handling Alex Orlenko 2021-09-26 01:05:37 +0100
  • 01154c0616
    Minor refacor of wrapped failures cache Alex Orlenko 2021-09-20 20:47:22 +0100
  • e42d67c70d
    Make protect_lua as a smart macro to choose from C/closure Alex Orlenko 2021-07-07 12:54:19 +0100
  • 771a7775c5
    Perf optimization: refactor metatable cache Alex Orlenko 2021-09-20 14:08:43 +0100
  • ee1c8a1a3d
    Add inline attributes to few hot funcs Alex Orlenko 2021-09-20 12:38:08 +0100
  • 3597e34ffb
    Fix internal HookCallback type (missing optional Send) Alex Orlenko 2021-09-20 12:13:36 +0100
  • 35eedd5a5e
    v0.6.3 v0.6.3 Alex Orlenko 2021-09-16 00:55:49 +0100
  • 53f873a482
    Update compile tests error messages Alex Orlenko 2021-09-16 00:49:17 +0100
  • fc1fe2c15e
    Add DeserializeOptions struct to control deserializer behavior. This solves #74 and provides a way to deserialize a Lua globals table. Alex Orlenko 2021-09-15 23:37:30 +0100
  • 7e7a44f4cd
    Update CHANGELOG Alex Orlenko 2021-08-22 16:31:14 +0100
  • 63c4861520
    Create FUNDING.yml Alex Orlenko 2021-08-22 16:22:20 +0100
  • 27e7facf9b
    Fix clippy warnings Alex Orlenko 2021-08-22 00:01:17 +0100
  • 31d32f2dda
    Wrap ExtraData to Arc<UnsafeCell>> instead of raw pointer and attach finalizer. This would allow to properly deallocate memory in module mode when closing lua state. Alex Orlenko 2021-08-21 23:17:09 +0100
  • 7d1b322e18
    Change ExtraData::mem_info to Box<MemoryInfo> Alex Orlenko 2021-08-19 01:42:32 +0100
  • d906405818
    Simplify interface of hook::HookTriggers Alex Orlenko 2021-08-18 18:49:17 +0100
  • 60fd060d47
    Clarify about calling Lua::init_from_ptr() multiple times Alex Orlenko 2021-08-17 15:34:34 +0100
  • 9f02a9ca09
    Add Debug::event() to the hook's Debug structure Alex Orlenko 2021-08-17 15:17:03 +0100
  • 1d7f105585
    Don't catch Rust panics in userdata finalizer on drop Alex Orlenko 2021-08-06 11:14:16 +0100
  • 1020315a9b
    Update documentation about FromLua for UserData. Closes #64 Alex Orlenko 2021-08-04 12:12:02 +0100
  • 628b70f561
    v0.6.2 v0.6.2 Alex Orlenko 2021-07-13 20:29:25 +0100
  • 8a7e546c66
    Shrink unsafe block in Lua::load_from_function and update doc Alex Orlenko 2021-07-13 16:03:50 +0100
  • 97bd288f56
    Add CI tests with enabled address sanitizer Don't use release mode in tests Try to use cache in CI Alex Orlenko 2021-07-13 12:14:34 +0100
  • 59253410bb
    Update trybuild messages Alex Orlenko 2021-07-13 11:59:33 +0100
  • 5fb7b96704
    Replace custom UserDataRef(Mut) with standard Ref(Mut) Alex Orlenko 2021-07-13 10:53:10 +0100
  • 17162b1e0b
    UserData improvements: 1) Optimize make_userdata call 2) Refactor UserDataWrapped and make it enum Alex Orlenko 2021-07-10 22:45:32 +0100
  • 934aa3b65f
    Forgotten optimization for box_method_mut Alex Orlenko 2021-07-09 23:25:48 +0100
  • 3bffe1d7c3
    Combine WrappedError and WrappedPanic structs to WrappedFailure enum Alex Orlenko 2021-07-09 00:05:29 +0100
  • 582b2c585f
    Rename init_gc_metatable_for and get_gc_metatable_for Alex Orlenko 2021-07-08 22:57:54 +0100
  • 56b6b128b5
    Minor fixes/compilation after revert Alex Orlenko 2021-07-08 22:53:53 +0100
  • 1731f5d61b
    Revert "Make protect_lua as a smart macro to choose from C/closure" Alex Orlenko 2021-07-08 18:41:10 +0100
  • 60822d12d2
    Revert "Move away from metatable hashmap cache to direct keys" Alex Orlenko 2021-07-08 18:40:14 +0100
  • 8ff610529b
    Don't wrap ExtraData to Arc<Mutex> and use raw pointer instead. This causes serious performance issues and given that Lua is single threaded (not Sync) it's safe to use a raw pointer instead. Alex Orlenko 2021-07-08 17:32:20 +0100
  • adbc9ccc9b
    Move away from metatable hashmap cache to direct keys Alex Orlenko 2021-07-08 15:37:18 +0100
  • 84fe5f7f76
    Make protect_lua as a smart macro to choose from C/closure Alex Orlenko 2021-07-07 12:54:19 +0100
  • 9d9d25faab
    link_cplusplus for factorio lua JohnTheCoolingFan 2021-07-05 19:12:21 +0300
  • fc59650943
    show resume in doc JohnTheCoolingFan 2021-07-05 17:12:02 +0300
  • 1fe583027b
    Add new functions: lua.load_from_function() and lua.create_c_function() This should be useful to register embedded C modules to Lua state. Provides a solution for #61 Alex Orlenko 2021-07-04 23:51:51 +0100
  • 9ae5e72fe0
    Implemented lua_registertracehandler JohnTheCoolingFan 2021-07-03 15:39:53 +0300
  • 629f801027
    Thread::resume is not available in Ffactorio lua JohnTheCoolingFan 2021-07-02 10:47:29 +0300
  • 464d9bfb5a
    Factorio lua - coroutine fix JohnTheCoolingFan 2021-07-02 10:37:20 +0300
  • 61338be45a
    Added extra lua.h functions from Factorio lua JohnTheCoolingFan 2021-07-02 10:32:58 +0300
  • f1e69de993
    Link them properly JohnTheCoolingFan 2021-07-02 09:31:02 +0300
  • 66d032f886
    Added lua_isstring and lua_isnumber equivalents JohnTheCoolingFan 2021-07-02 09:26:19 +0300
  • b8a6172c4b
    Factorio lua @ util.rs JohnTheCoolingFan 2021-07-01 09:13:52 +0300
  • 707707c8a0
    Docs mention factorio lua JohnTheCoolingFan 2021-07-01 09:13:11 +0300
  • f1433f49af
    Factorio lua docs JohnTheCoolingFan 2021-07-01 09:11:30 +0300
  • 7e0bb1ec93
    factorio lua @ scope.rs JohnTheCoolingFan 2021-07-01 09:09:18 +0300
  • 13ef2d45a7
    Factorio lua @ lua.rs JohnTheCoolingFan 2021-07-01 09:08:09 +0300
  • 90541ab04e
    Factorio lua @ hook.rs JohnTheCoolingFan 2021-07-01 09:05:44 +0300
  • 6bb4b6b0fc
    Factorio lua @ error.rs JohnTheCoolingFan 2021-07-01 09:03:56 +0300
  • d4935df511
    Factorio lua lib fixes JohnTheCoolingFan 2021-07-01 09:01:02 +0300
  • 8bf49e25c7
    Factorio lua @ StdLib JohnTheCoolingFan 2021-07-01 08:58:46 +0300
  • d1d0751585
    Not all libs are available in factorio lua JohnTheCoolingFan 2021-07-01 08:55:56 +0300
  • 7b5b78fa3d
    Add codecov.yml to don't fail on coverage change Alex Orlenko 2021-06-30 21:52:50 +0100
  • 8ec3449484
    Modified features and dependencies JohnTheCoolingFan 2021-06-30 23:46:04 +0300
  • e37d865980
    Factorio lua @ util.rs JohnTheCoolingFan 2021-06-30 23:45:26 +0300
  • 8490839d85
    Factorio lua @ userdata.rs JohnTheCoolingFan 2021-06-30 23:41:46 +0300
  • 2e1e1db51c
    Factorio lua @ src/lua.rs JohnTheCoolingFan 2021-06-30 23:35:33 +0300
  • 1836b57f37
    Fix cfg JohnTheCoolingFan 2021-06-30 23:20:42 +0300
  • 1f268121be
    Missed cfgs JohnTheCoolingFan 2021-06-30 23:18:39 +0300
  • 1c910342db
    Factorio lua @ mod.rs JohnTheCoolingFan 2021-06-30 23:17:49 +0300
  • 12f7df834d
    Factorio lua @ lualib.rs JohnTheCoolingFan 2021-06-30 23:14:54 +0300
  • ad50d8c0c9
    Factorio lua @ lua.rs JohnTheCoolingFan 2021-06-30 23:09:30 +0300
  • fb267cd42b
    Factorio lua @ lauxlib.rs JohnTheCoolingFan 2021-06-30 22:58:39 +0300
  • 698d286b1e
    Added lua-factorio to compat53.rs JohnTheCoolingFan 2021-06-30 22:53:29 +0300
  • 1e8024c957
    Update glue.c for factorio lua JohnTheCoolingFan 2021-06-30 22:47:06 +0300
  • dc803b3fe9
    Add factorio lua JohnTheCoolingFan 2021-06-30 22:39:50 +0300
  • c42182e946
    Missing comma JohnTheCoolingFan 2021-06-30 22:38:31 +0300
  • 8402c23b3c
    Updated build script to use factorio lua JohnTheCoolingFan 2021-06-30 22:37:35 +0300
  • 41aae83304
    Optimize callback creation Attach only one upvalue to callbacks rather than two. This leads to less lookup to Lua registry. Alex Orlenko 2021-06-30 16:50:50 +0100
  • 6a5a4dc5d2
    ().to_lua(lua) -> Value::Nil #60 Zoltán Nagy 2021-06-28 22:41:54 +0100
  • fc84e8623e
    v0.6.1 v0.6.1 Alex Orlenko 2021-06-27 22:42:14 +0100
  • 8aae9a7c3e
    Update chunk! documentation Alex Orlenko 2021-06-26 23:41:21 +0100
  • 24bbd62564
    Fix converting Lua sequence table to HashSet/BTreeSet Alex Orlenko 2021-06-25 01:49:09 +0100
  • 30af919931
    Lower once_cell dependency to 1.0 Alex Orlenko 2021-06-25 00:39:10 +0100
  • 89b5981c59
    Fix typos Alex Orlenko 2021-06-25 00:38:49 +0100
  • 7feabffc37
    v0.6.0 v0.6.0 Alex Orlenko 2021-06-21 23:19:56 +0100
  • f24fdfdb80
    Update AsChunk::env function prototype Alex Orlenko 2021-06-21 23:19:33 +0100
  • c702c5eff2
    Add userdata example Alex Orlenko 2021-06-21 20:28:14 +0100
  • e4daff8c16
    Add limited recursion test to increase coverage Alex Orlenko 2021-06-21 12:18:06 +0100
  • 8d474bbf8d
    Fix clippy warning Alex Orlenko 2021-06-21 03:25:21 +0100
  • 9e3b0ecc1e
    Even better optimization after 14d5c2c887 Alex Orlenko 2021-06-20 19:48:33 +0100
  • 42b396d0d1
    Optimize non-wrapped userdata method calls Alex Orlenko 2021-06-20 12:38:47 +0100
  • 14d5c2c887
    Lua->Rust callback performance improvements Alex Orlenko 2021-06-20 00:24:53 +0100
  • b84c10fde6
    Update README (include publishing to luarocks section) Alex Orlenko 2021-06-19 14:56:49 +0100
  • b49f9539b6
    Update CHANGELOG Alex Orlenko 2021-06-19 14:42:58 +0100
  • a208156ed2 Update examples to include chunk! macro Alex Orlenko 2021-06-19 14:41:48 +0100
  • 242bdafa75 More tests for arc/rc wrapped userdata Alex Orlenko 2021-06-19 00:03:09 +0100
  • b84d1bd65f Update test names Alex Orlenko 2021-06-18 23:13:56 +0100
  • 4e92ea341b Fix userdata memleak in edge case. This can happen if we unable to push metatable with __gc metamethod after pushing userdata. In this case Lua will never execute drop. Instead, we will push metatable first and then userdata. Alex Orlenko 2021-06-18 17:45:20 +0100
  • bf286751fa Improve code coverage Alex Orlenko 2021-06-17 00:11:58 +0100
  • 3b94b4e86f Implement Hash for RegistryKey. Closes #57 Alex Orlenko 2021-06-16 12:12:42 +0100
  • 9f0378b77e Complitely remove the C shim Alex Orlenko 2021-06-16 22:21:45 +0100
  • d3f44354e0 Revert commit ced808d5ab I think this experiment is unsuccessful and does not work well in a module mode with dynamic symbols resolution and mixing between different mlua instances. Overall the Rust bug has been fixed and we can wait for the "C-unwind" feature become stable. Alex Orlenko 2021-06-16 22:13:11 +0100
  • fca21d56d3 Check stack in entrypoint1 before pushing value to a stack Alex Orlenko 2021-06-13 23:28:41 +0100
  • 6e52bb7e65 Fix clippy warnings && tests Alex Orlenko 2021-06-13 23:08:56 +0100
  • 08ffeb0ca9 Improve module mode: - Don't hide module function inside luaopen_% function. - Raise Lua exception instead of panic if module function returns error. Alex Orlenko 2021-06-13 22:38:51 +0100
  • 3b9d8a7b5f Keep all Lua symbols in unsafe mode to load C modules Alex Orlenko 2021-06-12 18:00:55 +0100