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 (Message, MessagePayload, etc.) with encode/decode methods. The generated code is driven by facet Shapes from vox_types::message.

The only special-cased type is Payload (ShapeKind::Opaque), which maps to OpaquePayload 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.