#lua #embed #cursed #another-language

lua-macro

Embed Lua code directly into your Rust, for some reason

2 releases

0.1.1 Mar 9, 2022
0.1.0 Mar 9, 2022

#8 in #cursed

MIT license

3KB

lua-macro

Have you ever wanted to embed Lua code straight into Rust?

No?

Well, you can now lol

How to use

Import lua_macro::lua and use lua! { your code } to insert some Lua. To evaluate an expression, use lua_macro::lua_eval!.

Dependencies

~1.3–1.9MB
~34K SLoC