Skip to main content

generate_stack_source

Function generate_stack_source 

Source
pub fn generate_stack_source(
    spec: &ProtocolSpecV1,
    options: &StackSourceOptions,
) -> Result<ProtocolStackSourceV1, StackGenerationError>
Expand description

Generate the protocol stack source of a validated spec.

The output depends only on spec and options. With the TypeScript generator’s identity in options.generator, its canonical JSON is byte-identical to the TypeScript output.