docs.rs failed to build forge-codegen-0.7.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
forge-codegen-0.10.0
FORGE binding generation system.
Generates type-safe frontend bindings from Rust source code. Supports two targets: SvelteKit (TypeScript) and Dioxus (Rust).
Architecture
The system has three layers:
- Parser (
parser.rs) — Extracts schema definitions from Rust AST. - Binding IR (
binding.rs) — Pre-computes all function binding facts once. - Emitters (
emit.rs,typescript/,dioxus/) — Generate target code using shared type mapping functions, eliminating duplication.
The key design principle: every type mapping and utility function exists in
exactly one place (emit.rs), so edge cases can't diverge between targets.