This module provides gRPC bindings for LuaJIT on macOS.
- Copy
grpc.luaandgrpc_ffi.soto your Lua module path (e.g.,/usr/local/lib/lua/5.1/or a local directory). - Ensure both files are in the same directory.
local grpc = require("grpc")
-- Initialize gRPC
grpc.init()
-- Get version
print(grpc.version())
-- Shutdown gRPC
grpc.shutdown()Returns the gRPC library version string.
Initializes the gRPC library. Must be called before using other gRPC functions.
Shuts down the gRPC library. Should be called when done.
- Run
./build.shto build the shared library. - Artifacts will be placed in
Releases/Modules/Lua.