C++ Serialization

Open-source C++ projects categorized as Serialization | Edit details
Related topics: #CPP #C++ #JSON #Cpp17 #Protobuf

Top 23 C++ Serialization Projects

  • Protobuf

    Protocol Buffers - Google's data interchange format

    Project mention: The Tron protocol (Blockchain) a Deep Dive in 2022 | dev.to | 2022-05-09

    TRON protocol adheres to Google Protocol Buffers, which is a language-neutral, platform-neutral, and extensible way of serializing structured data for use in communications protocols, data storage, and more.

  • FlatBuffers

    FlatBuffers: Memory Efficient Serialization Library

    Project mention: conanex - Conan Extended | reddit.com/r/cpp | 2022-04-26

    For example, it allow to install the following packages that could have conanfile.py on github: `` [requires] poco/1.9.4 flatbuffers/2.0.0 { git = "https://github.com/google/flatbuffers", tag = "v2.0.0" } CTRE/3.6 { git = "https://github.com/hanickadot/compile-time-regular-expressions" }

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • cereal

    A C++11 library for serialization

    Project mention: Pataro II: Pataro Harder | dev.to | 2021-11-13

    Today I'm back to working on Pataro, the roguelike built on libtcod that made up much of my Hacktoberfest efforts. I had been assigned to an issue requesting the addition of serialization and deserialization, but unfortunately ran out of time and wasn't able to finish the former or start the latter. I ran into issues with Cereal, and had a hard time figuring out the structure of the program and how to go about implementing serialization for all the relevant components. At the end of that attempt I mentioned that if I were to try again I'd start by testing out Cereal separately and getting a handle on that before trying to implement it in Pataro - so that's what I'm doing today.

  • Magic Enum C++

    Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code

    Project mention: Nameof: Simply Obtain The Name Of A C++ Variable, Type, Function, Or Macro | reddit.com/r/cpp | 2022-05-11

    He is also super reactive. I once submitted an issue about a compiler related bug in magic_enum, which he solved in 30 minutes.

  • Bond

    Bond is a cross-platform framework for working with schematized data. It supports cross-language de/serialization and powerful generic mechanisms for efficiently manipulating data. Bond is broadly used at Microsoft in high scale services. (by microsoft)

    Project mention: 11 Companies That Use Haskell in Production | dev.to | 2022-05-04

    Microsoft uses Haskell in Bond, a cross-platform framework for working with schematized data.

  • rttr

    C++ Reflection Library

    Project mention: Introduce my in-house game engine | reddit.com/r/gamedev | 2022-01-08

    I think this library is really nice. Because it doesn't require bothersome macros like this library https://github.com/rttrorg/rttr.

  • protobuf-c

    Protocol Buffers implementation in C

    Project mention: protobuf-c: Google Protocol Buffers implementation in C | reddit.com/r/Clibs | 2022-04-26
  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • Nameof C++

    Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum

    Project mention: Nameof: Simply Obtain The Name Of A C++ Variable, Type, Function, Or Macro | reddit.com/r/cpp | 2022-05-11
  • cista

    Cista is a simple, high-performance, zero-copy C++ serialization & reflection library.

  • The IOD Library

    Meta programming utilities for C++14. Merged in matt-42/lithium

  • Bitsery

    Your binary serialization library

    Project mention: Binary serialization library for at least C++17? | reddit.com/r/cpp_questions | 2021-10-10

    Bitsery is the closest I've seen to it, but you have to use extensions (which i can't yet figure out the API for) to make it achieve byte for byte compatbility

  • smf

    Fastest RPC in the west

  • cppcodec

    Header-only C++11 library to encode/decode base64, base64url, base32, base32hex and hex (a.k.a. base16) as specified in RFC 4648, plus Crockford's base32. MIT licensed with consistent, flexible API.

  • python-rapidjson

    Python wrapper around rapidjson

    Project mention: How to Design Better APIs | news.ycombinator.com | 2022-03-11

    > * Human readable

    Computers are the main consumers of APIs, and ISO 8601 is far from machine-readable.

    For example, in Elixir, DateTime.from_iso8601/1 won't recognize "2022-03-12T07:36:08" even though it's valid. I had to rewrite a chunk of Python's radidjson wrapper to 1-9 digit fractional seconds (1).

    I'm willing to bet 99% of ISO8601 will fail to handle all aspects of the spec. So when you say "ISO8601" what you're really saying is "our [probably undocumented, and possibly different depending on what system you're hitting] version of the ISO-86001 spec."

    (1) https://github.com/python-rapidjson/python-rapidjson/pull/13...

  • rapidyaml

    Rapid YAML - a library to parse and emit YAML, and do it fast.

    Project mention: yaml-cpp VS rapidyaml - a user suggested alternative | libhunt.com/r/yaml-cpp | 2022-02-05
  • QxOrm

    QxOrm library - C++ Qt ORM (Object Relational Mapping) and ODM (Object Document Mapper) library - Official repository

    Project mention: what is the popular backend cpp framework full featured and easy to deployment, has docs for depolyment .. in 2021? cpp | reddit.com/r/cpp | 2021-12-02

    QxOrm library can be used as a C++ backend :

  • protozero

    Minimalist protocol buffer decoder and encoder in C++

  • json_struct

    json_struct is a single header only C++ library for parsing JSON directly to C++ structs and vice versa

    Project mention: Is there something like GSON available in C++? | reddit.com/r/cpp | 2022-05-20

    I made a header only library with good performance and low memory overhead to parse JSON straight into structs, and serialize structs to JSON. How to parse into non map/object types is configurable with template functions. json_struct

  • serializer

    A single header standard C++ serialization framework. (by eyalz800)

    Project mention: Brand new C++20 serialization library (one header) | reddit.com/r/cpp | 2021-12-17

    Reference to the "old" C++14 library zpp_serializer, I didn't want to update this one since it could create a lot of complexity to work between these C++ standards.

  • bitpacker

    type-safe and low-boilerplate bit level serialization

  • protopuf

    Protocol Puffers: A little, highly templated, and protobuf-compatible serialization/deserialization header-only library written in C++20

    Project mention: protopuf: throw away protoc and describe protobuf schema just by c++ templates! | reddit.com/r/cpp | 2022-05-16

    You can see some benchmarks in https://github.com/PragmaTwice/protopuf/tree/master/test/benchmark and get the results of it in github actions. But the benchmark is not comprehensive at the moment, and I realized that part of the slowness of protobuf comes from the fact that it checks if the string follows utf8

  • CppSerialization

    Performance comparison of the most popular C++ serialization protocols such as Cap'n'Proto, FastBinaryEncoding, Flatbuffers, Protobuf, JSON

    Project mention: Binary serialization library for at least C++17? | reddit.com/r/cpp_questions | 2021-10-10

    If schema based, then some of these are valid https://github.com/chronoxor/CppSerialization, or you could use something like cereal (as mentioned before)

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-05-20.

C++ Serialization related posts


What are some of the best open-source Serialization projects in C++? This list will help you:

Project Stars
1 Protobuf 54,675
2 FlatBuffers 17,941
3 cereal 3,170
4 Magic Enum C++ 2,771
5 Bond 2,429
6 rttr 2,213
7 protobuf-c 2,091
8 Nameof C++ 1,364
9 cista 878
10 The IOD Library 726
11 Bitsery 700
12 smf 607
13 cppcodec 457
14 python-rapidjson 454
15 rapidyaml 314
16 QxOrm 275
17 daw_json_link 272
18 protozero 214
19 json_struct 212
20 serializer 149
21 bitpacker 103
22 protopuf 99
23 CppSerialization 94
Find remote jobs at our new job board 99remotejobs.com. There are 7 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives