Skip to main content

Crate hyprstream_rpc_build

Crate hyprstream_rpc_build 

Source
Expand description

Shared Cap’n Proto build helpers for annotation extraction and TypeScript codegen.

This crate provides:

  • Schema types (ParsedSchema, StructDef, FieldDef, etc.) shared between the proc-macro derive crate and the TypeScript codegen binary
  • CGR (CodeGeneratorRequest) parsing with full wire format info
  • Metadata JSON extraction for proc-macro annotation merging
  • TypeScript codegen from parsed schemas (via the hyprstream-ts-codegen binary)

Modules§

backend
Language-agnostic code generation backend trait.
schema
Cap’n Proto schema parsing.
util
Utility functions for name conversion.

Functions§

compile_schemas
Compile Cap’n Proto schemas with CGR + metadata extraction.
parse_schema_and_extract_annotations
Parse a CodeGeneratorRequest CGR file and extract schema metadata with annotations.