Hasty Briefsbeta

Bilingual

Msgpack23 – A modern, header-only C++ library for MessagePack (de)serialization

a year ago
  • #MessagePack
  • #C++
  • #Serialization
  • msgpack23 is a modern, header-only C++ library for MessagePack serialization and deserialization.
  • Targets C++20 and beyond, leveraging templates and type traits for flexibility.
  • Header-only with no additional build steps or dependencies.
  • Supports STL containers, maps, enums, time points, and user-defined types.
  • Extensible via custom pack and unpack member functions.
  • Endian-aware for portability using std::endian and std::byteswap.
  • Includes support for various primitive types and std::chrono::time_point.
  • Simple integration: clone the repository and include the header.
  • Example provided for packing and unpacking std::map.
  • Custom type serialization demonstrated with MyData struct.
  • Performance-focused with minimal overhead and compile-time type deductions.
  • Open for contributions under MIT License.