Expand description
ServiceModel -> Rust source emission.
Output shape (<package>_<service>_temporal module):
- One
<RPC>_WORKFLOW_NAMEconstant per workflow. - One
<Service>Clientstruct holding atemporal_runtime::TemporalClient, plus one<rpc>(input, opts) -> <Workflow>Handlestart method and one<rpc>_handle(workflow_id)attach method per workflow. - One
<Workflow>StartOptionsper workflow. - One
<Workflow>Handleper workflow, exposing only the signals, queries, and updates wired in viaWorkflowOptions.{signal,query,update}. - One
<signal>_with_start/<update>_with_startfree function per start-flagged ref.
Generated code refers to runtime helpers via crate::temporal_runtime::*
— the consumer crate provides that module. This mirrors the PoC’s wiring
and lets the plugin stay agnostic to whichever Temporal SDK shape the
consumer pins.
Functions§
- render
- Render the
<package>_<service>_temporal.rssource for one service.