Skip to main content

forge_codegen/
lib.rs

1//! FORGE binding generation system.
2//!
3//! Two-phase pipeline with `forge.schema.json` as the contract:
4//!
5//! 1. **Phase 1** — Parser reads Rust source, produces `forge.schema.json`.
6//! 2. **Phase 2** — Emitters read the schema, produce per-language client code.
7
8mod binding;
9pub mod dioxus;
10mod emit;
11pub mod parser;
12pub mod schema_json;
13pub mod typescript;
14
15pub use dioxus::DioxusGenerator;
16pub use parser::{ParseOutcome, find_duplicate_handlers, parse_project, validate_registry};
17pub use schema_json::{emit as emit_schema, emit_string as emit_schema_json};
18pub use typescript::{Error, GenerateOptions, RUNES_SVELTE_TS, TypeScriptGenerator};