Is there a good C implementation of Google Protocol Buffers

Viewed 19336

Google officially provides a C++ implementation of Google Protocol buffers, but I'm looking for a C implementation.

I will not be using it myself, but my hope is that I can use this tool to generate C code for our Google Protocol Buffer definitions which I can then hand of to the C developers.

I'm not looking for any RPC functionality, simply encoding and decoding of Google Protocol Buffer messages.

4 Answers

μpb is a small protobuf implementation written in C.

upb generates a C API for creating, parsing, and serializing messages as declared in .proto files. upb is heavily arena-based

Related