zig-lua-wrapper icon indicating copy to clipboard operation
zig-lua-wrapper copied to clipboard

Example with LuaSocket

Open catwell opened this issue 3 years ago • 2 comments

Hello,

nice example! If you're interested I completed it to show how to build more complicated apps with C dependencies such as LuaSocket and several Lua files. I did not do the Windows part but it shouldn't be hard (just use wsocket instead of usocket).

catwell avatar Feb 06 '22 14:02 catwell

Cool example, if you open a pull request, i'll merge it!

ConnorRigby avatar Feb 06 '22 23:02 ConnorRigby

I wondered if I should make a PR but I decided against it because it complicates your example quite significantly (it adds two dependencies...) and because I don't have Windows support yet. I think it's a good thing to have the simple version as well.

Ideally I would find a way to make the luasocket part optional, if so we could even make kind of "packages" for popular libraries...

catwell avatar Feb 07 '22 09:02 catwell