typewriter-engine
Shared parser, scanner, emitter, and drift-detection engine used by both
typewriter-macrosandtypebridge-cli.
What's Inside
- Parser — converts
syn::DeriveInputinto typewriter IR (TypeDef) - Scanner — discovers
#[derive(TypeWriter)]items across project files - Emitter orchestration — renders and writes output files for all supported languages
- Drift detection — compares expected generated outputs vs disk state for
check --ci - Project helpers — project root and config (
typewriter.toml) discovery
Primary Consumers
typewriter-macros(compile-time generation duringcargo build)typebridge-cli(generate,check,watchcommands)
Usage
This crate is primarily internal workspace infrastructure. Most users should use:
typebridgefor proc-macro-driven generationtypebridge-clifor standalone CLI workflows
License
Apache-2.0 — Darshan Vichhi