GitHub - sam-w-yellin/crunch: A small, fast message definition and serdes protocol with built-in field and message validation.
github.com·6d·
Zig
Preview
Report Post

Crunch

Crunch is a C++ message definition and serialization framework for mission-critical, resource-constrained systems where message semantics matter as much as structure.

See the Doxygen for API reference and detailed documentation.

Key Features

  • Opt-out validation: Semantic field and cross-field validation are first-class, built-in, and happen by default.
  • Static memory allocation: For use in resource-constrained systems.
  • Flexible serialization: Swap serialization formats (e.g., TLV, static layout) without changing message definitions.
  • Built-in integrity checks: Support for CRC16 or parity is built-in.
  • Zero exceptions: Uses std::expected and std::optional for error handling to be compati…

Similar Posts

Loading similar posts...