Lua library for Google's Protocol Buffers
Lua Python C Other
Switch branches/tags
#13 Compare This branch is 34 commits ahead of sean-lin:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.


Lua library for Google's Protocol Buffers. This is a fork of

Installation and Usage

Using luarocks by running: luarocks install protobuf

Make a link to the protoc plugin, for example:

ln -s /usr/local/lib/luarocks/rocks/protobuf/1.1.0-0/protoc-plugin/protoc-gen-lua /usr/local/bin/

proto files can then be compiled using: protoc --lua_out=./ foo.proto

The API is similar to Google's protobuf python library. An example can be found in the example directory.