Skip to main content

parse_schema_and_extract_annotations

Function parse_schema_and_extract_annotations 

Source
pub fn parse_schema_and_extract_annotations(
    cgr_path: &Path,
    output_path: &Path,
    name: &str,
) -> Result<(), Box<dyn Error>>
Expand description

Parse a CodeGeneratorRequest CGR file and extract schema metadata with annotations.

Writes a JSON file at output_path containing structs, enums, and annotations extracted from the compiled Cap’n Proto schema.