Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 270 Bytes

File metadata and controls

11 lines (8 loc) · 270 Bytes

Zig module example

This directory contains a minimal working example of Zig module that can be imported from Lua.

$ zig build
$ LUA_CPATH="./zig-out/lib/lib?.so" luajit <<< "require('module').greet('fellow readers')"
Hello fellow readers from Zig module!