summaryrefslogtreecommitdiff
path: root/mlua_derive/src
AgeCommit message (Collapse)Author
2024-04-18Fix module imports for export (#394)Joris Willems
2024-03-25chore: make clippy happy (#388)Yiyu Lin
Co-authored-by: hzlinyiyu <hzlinyiyu@corp.netease.com>
2024-01-25Fix `FromLua` derive proc macro to cover more casesAlex Orlenko
2024-01-10Include skip_memory_check code only when the corresponding attribute set for ↵Alex Orlenko
module
2024-01-10Fix edge case when loading many-in-one module from thread without using its ↵Alex Orlenko
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.
2023-07-31Update module entrypoint function.Alex Orlenko
Return c_int instead of Result (and avoid potential panic on Rust side).
2023-07-27Fix `AsChunk` trait to support capturing wrapped Lua types ↵Alex Orlenko
(`AnyUserData::wrap()` and `Function::wrap()`). This is a breaking change, the `'lua` lifetime used to in environment moved to the trait declaration.
2023-07-22Use c-unwind ABI (Rust 1.71+)Alex Orlenko
2023-07-16Add `#[derive(FromLua)]` macro to opt-in into `FromLua<T> where T: 'static + ↵Alex Orlenko
Clone` (userdata type). Future macro implementations will allow making T from Lua tables/other values. Relates to #291.
2023-07-10Add new module attribule `skip_memory_check` to improve performanceAlex Orlenko
in module mode (by skipping memory allocations check) with extra risks.
2023-06-03Require environment to be a Table instead of Value in Chunks.Alex Orlenko
In addition to that, `AsChunk::env()` renamed to `AsChunk::environment()`.
2023-04-22(clippy) mlua_derive: don't clone function nameAlex Orlenko
2023-03-28ClippyAlex Orlenko
2023-03-28More user-friendly error message about missing value for `name` attribute in ↵Alex Orlenko
module macro Update the `[lua_module]` doc
2023-03-28Switch to syn 2.0Alex Orlenko
2023-02-07Fix clippy warningsAlex Orlenko
2022-12-19Refactor `AsChunk` traitAlex Orlenko
2022-12-18Check for invalid args when parsing `#[lua_module(...)]` proc macroAlex Orlenko
2022-12-18feat: Support custom name of `lua_module`rise0chen
2022-04-14Refactor `AsChunk` trait.Alex Orlenko
Remove blanket implementation for T: AsRef<[u8]> Implement for `std::path::Path`
2021-12-28Fix clippy warningsAlex Orlenko
2021-06-21Update `AsChunk::env` function prototypeAlex Orlenko
2021-06-13Improve module mode:Alex Orlenko
- Don't hide module function inside `luaopen_%` function. - Raise Lua exception instead of panic if module function returns error.
2021-05-06Fix clippy warningsAlex Orlenko
2021-05-05Add chunk! macro supportAlex Orlenko
2020-06-07New `module` featureAlex Orlenko
Don't link module with Lua core (see: http://lua-users.org/wiki/BuildingModules) Example and tests for modules
2019-10-02Add mlua_derive proc macro moduleAlex Orlenko