Skip to main content

Crate atrg_codegen

Crate atrg_codegen 

Source
Expand description

Lexicon-driven Rust code generation for at-rust-go.

Takes AT Protocol lexicon JSON files and generates:

  • Strongly-typed serde-derived structs for records, objects, params, and outputs
  • Axum handler stubs with correct input/output types
  • A xrpc_routes() function wiring all generated handlers
  • AT-URI helper functions

This crate ships zero lexicon files. It only provides the generator.

Re-exports§

pub use generator::generate;
pub use generator::GenOptions;
pub use generator::GenReport;

Modules§

generator
Code generation from lexicon definitions.
lexicon
AT Protocol lexicon JSON parsing.