Expand description
Swift code generation for roam services.
This module generates Swift client and server code from service definitions. The generated code includes:
- Type definitions for all named types (structs, enums)
- Caller protocol and client implementation for making RPC calls
- Handler protocol for implementing services
- Dispatcher for routing incoming calls
- Encoding/decoding logic for all types
- Runtime schema information for streaming channel binding
Re-exports§
pub use client::generate_client;pub use schema::generate_schemas;pub use server::generate_server;pub use types::collect_named_types;pub use types::generate_named_types;
Modules§
- client
- Swift client generation.
- decode
- Swift decoding statement generation.
- encode
- Swift encoding expression generation.
- schema
- Swift schema generation for runtime channel binding.
- server
- Swift server/handler generation.
- types
- Swift type generation and collection.
Functions§
- generate_
method_ ids - Generate method IDs as a Swift enum.
- generate_
service - Generate a complete Swift module for a service.