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-codegenbinary)
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.