typewriter-engine 0.3.0

Shared parser and generation engine for typewriter proc-macro and CLI
Documentation

typewriter-engine

Shared parser, scanner, emitter, and drift-detection engine used by both typewriter-macros and typewriter-cli.

Crates.io Docs.rs

What's Inside

  • Parser — converts syn::DeriveInput into 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 during cargo build)
  • typewriter-cli (generate, check, watch commands)

Usage

This crate is primarily internal workspace infrastructure. Most users should use:

License

Apache-2.0 — Darshan Vichhi