msgpack23 A modern, header-only C++ library for MessagePack serialization and deserialization. Overview msgpack23 is a lightweight library that provides a straightforward approach to serializing and deserializing C++ data structures into the MessagePack format. It is written in modern C++ (targeting C++20 and beyond) and leverages templates and type traits to provide a flexible, zero-dependency solution for packing and unpacking various data types. Key Features Header-only : Simply include the header and start using it—no additional build steps or dependencies. : Simply include the header and start using it—no additional build steps or dependencies. Modern C++ : Uses C++ features like concepts to handle containers, maps, enums, time points, and user-defined types. : Uses C++ features like concepts to handle containers, maps, enums, time points, and user-defined types. Extensible : Allows you to define custom types by implementing pack and unpack member functions, automatically integrating them into the serialization pipeline. : Allows you to define custom types by implementing and member functions, automatically integrating them into the serialization pipeline. Collection and Map Support : Automatically detects and serializes STL containers (e.g., std::vector , std::map ) without extra work. : Automatically detects and serializes STL containers (e.g., , ) without extra work. Time Point Support : Native support for serializing std::chrono::time_point objects. : Native support for serializing objects. Variety of Primitive Types : Integers (signed/unsigned), booleans, floating-point, std::string , byte arrays, and nullptr are all supported out-of-the-box. : Integers (signed/unsigned), booleans, floating-point, , byte arrays, and are all supported out-of-the-box. Endian-Aware: Properly handles endianness using std::endian and std::byteswap to ensure portability. Getting Started Clone the Repository git clone https://github.com/rwindegger/msgpack23.git Include the Header...
First seen: 2025-03-30 00:31
Last seen: 2025-03-30 06:32