Feature Tour
Runnable examples on these pages pull live source from the sbe-feature-tour
sample crate (or a book/examples/ fragment compiled against the same codec).
Those includes are compiled by docs_validation_test. Schematics that cannot
run in the harness stay rust,ignore — see
What Generated Code Looks Like.
- Exact Sizing —
compute_length_with_headergives the byte count before you encode - Bulk Arrays —
bulk_add(&[Entry])for fixed-stride leaf groups - Consuming Decode Stages — walk groups and var-data in wire order
- What Generated Code Looks Like — stages, metadata, placement
- Trust Boundaries —
try_fromvalidates;wraptrusts — explicit in the types - Domain Objects (DTOs) — owned, serialisable snapshots (never on the hot path)
- Multi-Template Dispatch —
AnyMessageroutes by template ID at decode time