Skip to main content

atrg_codegen/
lib.rs

1#![deny(unsafe_code)]
2#![warn(missing_docs)]
3//! Lexicon-driven Rust code generation for at-rust-go.
4//!
5//! Takes AT Protocol lexicon JSON files and generates:
6//! - Strongly-typed `serde`-derived structs for records, objects, params, and outputs
7//! - Axum handler stubs with correct input/output types
8//! - A `xrpc_routes()` function wiring all generated handlers
9//! - AT-URI helper functions
10//!
11//! **This crate ships zero lexicon files.** It only provides the generator.
12
13pub mod generator;
14pub mod lexicon;
15
16pub use generator::{generate, GenOptions, GenReport};