protobuf-c

C implementation of Protocol Buffers with code generation support

brewmacoslinux
Try with needOr install directly
Source

About

Protocol buffers library

Commands

protoc-c

Examples

Generate C code from a protobuf definition file$ protoc-c --c_out=. message.proto
Generate C code with output in a specific directory$ protoc-c --c_out=/path/to/output --proto_path=. schema.proto
Generate C code from multiple proto files$ protoc-c --c_out=. messages.proto types.proto definitions.proto