summaryrefslogtreecommitdiff
path: root/src/serde
AgeCommit message (Collapse)Author
2021-09-28Make `protect_lua` as a smart macro to choose from C/closureAlex Orlenko
2021-09-15Add `DeserializeOptions` struct to control deserializer behavior.Alex Orlenko
This solves #74 and provides a way to deserialize a Lua globals table.
2021-08-18Simplify interface of `hook::HookTriggers`Alex Orlenko
2021-07-08Revert "Make `protect_lua` as a smart macro to choose from C/closure"Alex Orlenko
This reverts commit 84fe5f7f761e5a9669ae00df3f6e48ef2814272c.
2021-07-07Make `protect_lua` as a smart macro to choose from C/closureAlex Orlenko
2021-06-16Revert commit ced808d5abAlex Orlenko
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.
2021-05-10Fix spellingAlex Orlenko
2021-05-03Make `SerializeOptions` non_exhaustive.Alex Orlenko
Add builder implementation similar to `LuaOptions` to set individual options.
2021-05-03Implement/Derive `Debug` for Lua and few other structsAlex Orlenko
2021-05-02Stack assertions reviewAlex Orlenko
Other minor code and documentation updates
2021-04-27Hide Deserializer inner fieldsAlex Orlenko
Improve documentation
2021-04-27Remove Result from lua.null() and lua.array_metatable(). They never fail.Alex Orlenko
2021-04-27Add SerializeOptions to to change default Lua serializer behaviourAlex Orlenko
2021-04-27Don'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-02-27Fix/whitelist some clippy warningsAlex Orlenko
2021-01-20Fix numeric types conversion for 32bit lua. Fix #27Alex Orlenko
2020-12-31Update documentationAlex Orlenko
2020-12-29Add serialization example & update othersAlex Orlenko
2020-12-14Serde support (serialize feature flag)Alex Orlenko