Extremely tiny C++ single-header library that implements basics of Protobuf protocol and provides a generator that parses proto 2 syntax.
Meant to be used in embeded systems or places where using standard library is not ideal.
- Serializing and deserializing with zero allocations.
- Can be configured to not use standard library.
- Can be configured to use or disable virtual method table.
- Consists only of code. Doesn't provide ANY metadata or other garbage.
- Supports repeated fields (currently only via vectors from standard library).
- Supports custom allocators (you can even allocate on stack).
- Supports all the scalar types protobuf supports.
- Supports message fields.
- Supports enums.
- Follows proto 2 syntax.
- Currently only works with proto 2 syntax.
- Doesn't support a lot of protobuf stuff (more on it you can find in smallpp.h.
First use generator like this:
generator.exe <output dir> <files...>
To learn how to use messages please check example.