Skip to main content

generate_rust_project

Function generate_rust_project 

Source
pub fn generate_rust_project(
    project: &ProjectSchema,
) -> Result<GeneratedProject>
Expand description

Generate a Rust project from a project schema

This function validates the project before generating code. If validation fails, it returns an error with details about what needs to be fixed.

§Arguments

  • project - The project schema to generate code from

§Returns

  • Ok(GeneratedProject) - The generated project files
  • Err - If validation fails or code generation encounters an error

§Requirements

  • 12.1: Generate valid, compilable ADK-Rust code
  • 12.4: Validate workflow before code generation
  • 12.5: Display specific error messages if validation fails