libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
- Complete IETF RFC 8949 (STD 94) conformance
- Robust platform-independent C99 implementation
- Layered architecture offers both control and convenience
- Flexible memory management
- No shared global state - threading friendly
- Proper handling of UTF-8
- Full support for streams & incremental processing
- Extensive documentation and test suite
- No runtime dependencies, small footprint
git clone https://github.com/PJK/libcbor
cmake -DCMAKE_BUILD_TYPE=Release libcbor
make
make install
brew install libcbor
sudo add-apt-repository universe
sudo apt-get install libcbor-dev