ergo-sbe
ergo-sbe generates binary-compatible Rust SBE codecs with compile-time
wire-order enforcement, closure-based groups, exact buffer sizing, and zero
heap allocation on hot paths.
AI assistance. Large parts of this project were written with heavy AI assistance. Humans directed the work, approved designs, and ran verification. Details: AI-ASSISTANCE.md.
📖 Full Documentation
The Ergon Book is the comprehensive guide for ergo-sbe, covering:
- Getting Started — depend, generate, encode, decode
- Feature Tour — exact sizing, bulk arrays, decode stages, DTOs, trust boundaries
- Core Concepts — wire order, buffer sizing, composites, flyweight vs struct
- Configuration —
with_conversionvswith_domain_type, hooks - Recipes — Display/Debug, schema→rustdoc, domain DTOs, timestamps
- Benchmarks — parity methodology and gates
Quick Example
use ;
API Reference
docs.rs/ergo-sbe — generated Rustdoc for the published crate.
License
Apache-2.0.