---
url: /zh/examples/bindings/lua-module.md
---
参考 [luarocks-build-xmake](https://github.com/xmake-io/luarocks-build-xmake)
如果你的 lua 模块含有 C 代码，你可以使用 [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects) 去从 lua 代码生成 C 代码。
参考[例子](https://github.com/Freed-Wu/rime.nvim/blob/main/xmake.lua)。
