commit | dca0437cfb717499e1062c09c6ded551e096e5b8 | [log] [tgz] |
---|---|---|
author | Xin Li <[email protected]> | Sun Sep 08 14:26:55 2019 -0700 |
committer | android-build-merger <[email protected]> | Sun Sep 08 14:26:55 2019 -0700 |
tree | 32004465065b431a8ed1c140d25898dee2cee756 | |
parent | e4dc4135793478202bb316ac1ee1f629604c1ce3 [diff] | |
parent | 18b9201c34aa5ff2f2d7c1f76c9d8e0076e0a832 [diff] |
[automerger skipped] Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master am: 18b9201c34 -s ours am skip reason: change_id Ic655324c52447411209c7ab8c225af31e3f92241 with SHA1 96f07d819b is in history Change-Id: Ica5d000e82d8f7b03dbb6d4fad75a38f4bcc1202
This is a constrained node implementation of CBOR in C that I threw together in 2013, before the publication of RFC 7049, to validate certain implementability considerations.
Its API model was inspired by nxjson. It turns out that this API model actually works even better with the advantages of the CBOR format.
This code has been used in a number of research implementations on constrained nodes, with resulting code sizes appreciably under 1 KiB on ARM platforms.
I always meant to improve the interface some more with certain API changes, in order to get even closer to 0.5 KiB, but I ran out of time. So here it is. If I do get around to making these changes, the API will indeed change a bit, so please be forewarned.
There is a Simple-Makefile
for playing around, as well as a complete cmake
-based build environment. (You can choose what fits your needs better.)
Building with cmake
:
./build.sh
Building including testing:
./build.sh all test
Generating a test coverage report (requires lcov[^1]; result in build/lcov/index.html
):
./build.sh all coveralls coverage_report
License: MIT
[^1]: Installation with homebrew: brew install lcov