Binary serialization library for at least C++17?

This page summarizes the projects mentioned and recommended in the original post on /r/cpp_questions

Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. Bitsery

    Your binary serialization library

    But you could also look into something like bitsery which seems to make it easier to choose how you encode certain fields, without schemas existing outside your code. https://github.com/fraillt/bitsery

  2. Nutrient

    Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.

    Nutrient logo
  3. cereal

    A C++11 library for serialization

    This is the simplest serialization library I saw. You only need to add one method to your class and you can stream it to desired archive. It supports binary as well as json, XML and others. https://github.com/USCiLab/cereal

  4. CppSerialization

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

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

  5. Construct

    Construct: Declarative data structures for python that allow symmetric parsing and building

    I myself am looking for a binary serializer/deserializer that's like construct in python or construct-js, but obviously I wouldn't need some of the types that they have, since C++ already has them.

  6. construct-js

    🛠️A library for creating byte level data structures.

    I myself am looking for a binary serializer/deserializer that's like construct in python or construct-js, but obviously I wouldn't need some of the types that they have, since C++ already has them.

  7. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • pydantic VS marshmallow - a user suggested alternative

    2 projects | 21 Sep 2022
  • msgspec - a fast & friendly JSON/MessagePack library

    4 projects | /r/Python | 10 Feb 2022
  • Adding Syntax to the CPython Interpreter

    4 projects | news.ycombinator.com | 19 Oct 2024
  • YamlDotNet VS VYaml - a user suggested alternative

    2 projects | 20 Sep 2024
  • Checkbox Extraction from PDFs - A Tutorial

    3 projects | dev.to | 16 Jul 2024

Did you know that C++ is
the 7th most popular programming language
based on number of references?