Commit Graph

32 Commits

Author SHA1 Message Date
Alex Orlenko cf1cb31150
mlua_derive: v0.9.0-beta.2 2023-06-07 13:08:02 +01:00
Alex Orlenko 9785722d61
Require environment to be a Table instead of Value in Chunks.
In addition to that, `AsChunk::env()` renamed to `AsChunk::environment()`.
2023-06-03 00:00:53 +01:00
Alex Orlenko d0cbd32ad2
(clippy) mlua_derive: don't clone function name 2023-04-22 11:07:33 +01:00
Alex Orlenko 6fa0a78ec0
Prepare v0.9.0-beta.1 2023-03-30 23:18:10 +01:00
Alex Orlenko 0848ddcdf7
Clippy 2023-03-28 20:53:22 +01:00
Alex Orlenko e182d474e0
More user-friendly error message about missing value for `name` attribute in module macro
Update the `[lua_module]` doc
2023-03-28 16:27:16 +01:00
Alex Orlenko 0f937b0a03
Switch to syn 2.0 2023-03-28 13:56:59 +01:00
Alex Orlenko 22fbcfd9fb
Update edition everywhere 2023-03-12 01:03:31 +00:00
Alex Orlenko b790b525c1
Fix clippy warnings 2023-02-07 22:43:48 +00:00
Alex Orlenko 56abc4a700
Refactor `AsChunk` trait 2022-12-19 21:12:36 +00:00
Alex Orlenko 0aa30226df
Check for invalid args when parsing `#[lua_module(...)]` proc macro 2022-12-18 00:35:41 +00:00
rise0chen b532f86674
feat: Support custom name of `lua_module` 2022-12-18 00:35:41 +00:00
Alex Orlenko 4afca8f5bb
Prepare for v0.8.0 release 2022-06-02 22:44:07 +01:00
Alex Orlenko 294b3b7aae
Bump mlua_derive to 0.8.0-beta.1 2022-04-19 23:55:16 +01:00
Alex Orlenko d3975bdf30
Refactor `AsChunk` trait.
Remove blanket implementation for T: AsRef<[u8]>
Implement for `std::path::Path`
2022-04-14 20:48:00 +01:00
Alex Orlenko cfb5d3fd45
Fix clippy warnings 2021-12-28 12:23:06 +00:00
Alex Orlenko 7feabffc37
v0.6.0 2021-06-21 23:19:56 +01:00
Alex Orlenko f24fdfdb80
Update `AsChunk::env` function prototype 2021-06-21 23:19:33 +01:00
Alex Orlenko 08ffeb0ca9 Improve module mode:
- Don't hide module function inside `luaopen_%` function.
- Raise Lua exception instead of panic if module function returns error.
2021-06-13 22:38:51 +01:00
Alex Orlenko 01714d2510 Prepare 0.6.0-beta.2 release 2021-05-10 22:28:33 +01:00
Alex Orlenko 20cba5de5b Fix clippy warnings 2021-05-06 00:36:47 +01:00
Alex Orlenko 3e03f4201c Add chunk! macro support 2021-05-05 22:13:51 +01:00
Alex Orlenko 618874ef3c v0.5.0 2020-12-31 13:39:42 +00:00
Alex Orlenko 1d9fed2207 0.4.0 release 2020-06-08 02:28:26 +01:00
Alex Orlenko 5952a1f709 New `module` feature
Don't link module with Lua core (see: http://lua-users.org/wiki/BuildingModules)
Example and tests for modules
2020-06-07 20:38:11 +01:00
Alex Orlenko d0fa03e9c8 Bump version to 0.4.0-beta.1 2020-06-06 16:05:35 +01:00
Alex Orlenko afaa0eb639 0.3.0 release 2020-04-17 23:55:58 +01:00
Alex Orlenko 47e8a80c1c v0.3.0-alpha.1 with async support
Squashed commit of the async branch.
2020-04-17 22:39:50 +01:00
Alex Orlenko c9c8f983e0 0.2.0 release 2019-11-30 01:33:41 +00:00
Alex Orlenko abff36c6c8 Prepare mlua_derive for publishing 2019-11-05 11:50:58 +00:00
Alex Orlenko aa3002b7d9 Update README and description 2019-11-04 22:34:31 +00:00
Alex Orlenko 224ed8ff52 Add mlua_derive proc macro module 2019-10-02 22:12:27 +01:00