Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-13 | Fix clippy warnings && tests | Alex Orlenko | |
2021-06-13 | Improve module mode: | Alex Orlenko | |
- Don't hide module function inside `luaopen_%` function. - Raise Lua exception instead of panic if module function returns error. | |||
2021-06-04 | Add `String::to_string_lossy` | Alex Orlenko | |
2021-06-03 | Implement `UserData` for Rc<RefCell>/Arc<Mutex>/Arc<RwLock> wrappers | Alex Orlenko | |
2021-05-18 | Allow multiple entrypoints in a single module share the same Lua state. | Alex Orlenko | |
Previously it would initialize different Lua instances. Fixes #49. | |||
2021-05-05 | Add chunk! macro support | Alex Orlenko | |
2021-05-05 | Add `Thread::reset()` for luajit/lua54 | Alex Orlenko | |
2021-05-03 | Make `SerializeOptions` non_exhaustive. | Alex Orlenko | |
Add builder implementation similar to `LuaOptions` to set individual options. | |||
2021-05-03 | Add `LuaOptions` to customize Lua/Rust behaviour. | Alex Orlenko | |
The only option is `catch_rust_panics` to optionally disable catching Rust panics via pcall/xpcall. | |||
2021-05-03 | Implement ToLua/FromLua for Box<str> and Box<[T]> | Alex Orlenko | |
2021-05-02 | Improve growing the auxiliary stack of the ref thread: | Alex Orlenko | |
Try to double size first, if not fulfilled try halving in a loop till 0. Fix unwinding after panic in ref_stack_pop. Add test to check the stack exhaustion. | |||
2021-05-02 | Change signature of Function::dump() to remove Result | Alex Orlenko | |
2021-04-27 | Store nonstatic UserData pointer in self userdata (instead of metatable) | Alex Orlenko | |
2021-04-27 | Remove Result from lua.null() and lua.array_metatable(). They never fail. | Alex Orlenko | |
2021-04-27 | Add SerializeOptions to to change default Lua serializer behaviour | Alex Orlenko | |
2021-04-27 | More tests | Alex Orlenko | |
2021-04-27 | Add more checks for destructed userdata in AnyUserData | Alex Orlenko | |
2021-04-27 | Don't trigger longjmp in rust. | Alex Orlenko | |
Motivation behind this change is upcoming breaking change in Rust compiler v1.52.0 to prevent unwinding across FFI boundaries. https://github.com/rust-lang/rust/pull/76570 The new functionality requires nightly compiler to declare FFI functions as "C-unwind". The fundamental solution is to use C shim to wrap "e" and "m" Lua functions in pcall. Additionally define Rust calling convention to trigger lua_error on Rust behalf. | |||
2021-04-27 | Make MetaMethod::name() public | Alex Orlenko | |
Tests for UserDataMetatable::pairs() | |||
2021-04-27 | Improve/fix scoped UserData drop | Alex Orlenko | |
2021-04-27 | Add `UserDataFields` API. | Alex Orlenko | |
Provide safe access to UserData metatable and allow to define custom metamethods.. | |||
2021-04-16 | Drop 'feature(link_args)' (removed from nightly). Don't run tests for LuaJIT ↵ | Alex Orlenko | |
2.0.5 | |||
2021-04-16 | Serialize only known (registered) userdata. | Alex Orlenko | |
This reverts commit 7332c6a. Non-static userdata is a special case and can cause segfault if try to serialize it. Now it should be safe, plus I added non-static userdata destructor to generate better error messages in case of accessing destructed userdata. | |||
2021-04-15 | Improve panic handling (check for twice resumed panics) | Alex Orlenko | |
2021-03-03 | Fix compilation warnings on nightly | Alex Orlenko | |
2021-03-03 | Fix bug in returning nil-prefixed multi values from async function | Alex Orlenko | |
2021-02-21 | Fix scoped async destruction of partially polled futures | Alex Orlenko | |
2020-12-29 | Update compile tests | Alex Orlenko | |
2020-12-22 | Don't try to disable c modules without `package` loaded. Fix #24 | Alex Orlenko | |
2020-12-14 | Serde support (serialize feature flag) | Alex Orlenko | |
2020-11-04 | Update num-traits dependency | Alex Orlenko | |
Fix f32-to-f64 conversion tests | |||
2020-10-27 | Update compile tests (temporary set TRYBUILD=overwrite) | Alex Orlenko | |
2020-09-28 | Update compile tests error messages | Alex Orlenko | |
2020-07-28 | Add ChunkMode enum to mark chunks as text or binary | Alex Orlenko | |
2020-07-27 | Add Function::dump() to dump lua function to a binary chunk | Alex Orlenko | |
2020-07-27 | Update compile tests (2) | Alex Orlenko | |
2020-07-27 | Update compile tests | Alex Orlenko | |
2020-06-07 | Enable hooks support for LuaJIT | Alex Orlenko | |
2020-06-07 | Fix LuaJIT 2.1 libraries loading | Alex Orlenko | |
2020-06-07 | Refactor main_state handling | Alex Orlenko | |
Don't allow to set hook if main_state is not available Remove Lua 5.1 dirty hack | |||
2020-06-07 | Add test to check loading module from lua coroutine (thread) | Alex Orlenko | |
2020-06-07 | New `module` feature | Alex Orlenko | |
Don't link module with Lua core (see: http://lua-users.org/wiki/BuildingModules) Example and tests for modules | |||
2020-06-06 | Add `has_metamethod` to `AnyUserData` | Alex Orlenko | |
2020-06-06 | Add hooks support (based on rlua v0.17 implementation) | Alex Orlenko | |
This feature works on lua54, lua53, lua52 and lua51 only. LuaJIT is unstable. | |||
2020-06-06 | Add LuaJIT 2.0.5 stable support | Alex Orlenko | |
2020-05-12 | Update compile tests to include async/send features | Alex Orlenko | |
2020-05-12 | Provide safe and unsafe Lua modes: | Alex Orlenko | |
- In safe mode Lua would not have ability to load C code via `require` or `package.loadlib` - Unsafe mode allows everything. | |||
2020-05-12 | Use Rust allocator for new Lua states that allows to set memory limit | Alex Orlenko | |
2020-05-12 | Add MetaMethod::Close to support Lua 5.4 to-be-closed variables | Alex Orlenko | |
2020-05-11 | Add Lua 5.4 (rc2) support | Alex Orlenko | |