Skip to main content

Crate forge_codegen

Crate forge_codegen 

Source
Expand description

FORGE binding generation system.

Two-phase pipeline with forge.schema.json as the contract:

  1. Phase 1 — Parser reads Rust source, produces forge.schema.json.
  2. Phase 2 — Emitters read the schema, produce per-language client code.

Re-exports§

pub use dioxus::DioxusGenerator;
pub use parser::ParseOutcome;
pub use parser::find_duplicate_handlers;
pub use parser::parse_project;
pub use parser::validate_registry;
pub use schema_json::emit as emit_schema;
pub use schema_json::emit_string as emit_schema_json;
pub use typescript::Error;
pub use typescript::GenerateOptions;
pub use typescript::RUNES_SVELTE_TS;
pub use typescript::TypeScriptGenerator;

Modules§

dioxus
Dioxus (Rust frontend) code generation.
parser
Rust source code parser for extracting FORGE schema definitions.
schema_json
Schema JSON emitter.
typescript
TypeScript code generation for SvelteKit frontends.