Skip to main content

Module wire

Module wire 

Source
Expand description

Swift wire type code generation.

Generates a complete Swift source file containing all wire protocol types (MessageV7, MessagePayloadV7, etc.) with encode/decode methods. The generated code is driven by facet Shapes from roam_types::message.

The only special-cased type is Payload (ShapeKind::Opaque), which maps to OpaquePayloadV7 with both length-prefixed and trailing byte handling. Everything else is normal struct/enum codegen.

Structs§

WireType
A wire type to generate Swift code for.

Functions§

generate_wire_types
Generate a complete Swift wire types file.