typewriter-macros 0.2.0

Proc macro crate for the typewriter type sync SDK
Documentation

typewriter-macros

Proc macro crate for the typewriter SDK.

Crates.io Docs.rs

What's Inside

  • #[derive(TypeWriter)] — the main proc macro that drives code generation
  • Parser — converts syn::DeriveInput → typewriter IR using syn 2.x
  • Emitter dispatcher — routes to feature-gated language emitters

Usage

Most users should depend on the main typebridge crate, which re-exports this macro.

use typebridge::TypeWriter;

#[derive(TypeWriter)]
#[sync_to(typescript, python)]
pub struct MyType { /* ... */ }

Features

Feature Default Description
typescript Enable TypeScript emitter
python Enable Python emitter

License

Apache-2.0 — Darshan Vichhi