Skip to main content

codegen_with_config

Function codegen_with_config 

Source
pub fn codegen_with_config(
    typed: &TypedFile,
    config: &BackendConfig,
) -> GeneratedProject
Expand description

Generate a Rust project from a type-checked Assura file.

Walks the AST, maps Assura declarations to Rust source code, and formats the result with prettyplease. Returns a GeneratedProject with a Cargo.toml and generated .rs files.