Skip to content

PJK/libcbor

Repository files navigation

CircleCI Documentation Status latest packaged version(s) codecov

libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.

Main features

  • 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

Getting started

Compile from source

git clone https://github.com/PJK/libcbor
cmake -DCMAKE_BUILD_TYPE=Release libcbor
make
make install

Homebrew

brew install libcbor

Ubuntu 18.04 and above

sudo add-apt-repository universe
sudo apt-get install libcbor-dev

Fedora & RPM friends