Skip to content

C library implementing the MessagePack serialisation format.

License

Notifications You must be signed in to change notification settings

EBI-Metagenomics/lite-pack

Repository files navigation

Lite Pack

C library implementing the amazing MessagePack serialisation format.

Description

There are a few exceptional alternative libraries listed at the end of this README. However, I wanted to have more control on how the serialisation is done mainly for performance reasons. In particular, I wanted to make it easy for the user to implement its own extension types with zero-copy writing and reading (Think about homogeneous-typed arrays.) The excellent CMP library, for example, has an old open issue on a related matter but its API would need to be heavily modified to allow it to happen.

Getting Started

Dependencies

  • It currently works on MacOS and Linux and requires up-to-date compiler supporting C11 standard.

Installing

  • I recommend for now copying the files from the src/ directory into your project.

Build and test it

Clone it and enter the following commands:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_ALL_WARNINGS=ON THREAD_SAFE_LEVEL=0 ..
make
make test

Help

Please, consider raising an GitHub issue.

Authors

Version History

It is in alpha stage.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments