Expand description
Shared parser/emitter engine used by both proc-macro and CLI flows.
Modules§
- drift
- Drift detection between expected generated output and on-disk files.
- emit
- Render and write generated output files for target languages.
- parser
- Parser: converts Rust AST (
syn) into typewriter IR (TypeDef). - project
- Project root and configuration discovery utilities.
- scan
- Source scanning for
#[derive(TypeWriter)]items.
Structs§
- Type
Spec - Parsed TypeWriter definition discovered in a Rust source file.
- Typewriter
Config - Top-level configuration from
typewriter.toml.
Enums§
- Language
- The target languages that typewriter can generate code for.
- TypeDef
- Top-level item — either a struct or an enum.
Functions§
- all_
languages - parse_
languages - Parse a CSV/list of language names (case-insensitive) into Language values.