Skip to main content

Module parser

Module parser 

Source
Expand description

Parser: converts Rust AST (syn) into typewriter IR (TypeDef).

Functionsยง

has_typewriter_derive
Detect if item attributes include #[derive(... TypeWriter ...)].
parse_sync_to_attr
Parse the #[sync_to(typescript, python, ...)] attribute.
parse_tw_zod_attr
Parse optional type-level Zod override from tw(zod) or tw(zod = false).
parse_type_def
Parse a syn::DeriveInput into a TypeDef.