lingxia-native-codegen 0.9.0

TypeScript code generation for LingXia native APIs
Documentation

Code generation for #[lingxia::native] host handlers.

Scans Rust source files for #[lingxia::native("route")] / #[native("route")] function attributes and pub struct definitions, then emits one of:

  • .ts — TypeScript client with typed invoke / stream / channel bindings
  • .js — browser global JS client
  • .rs — Rust auto-register module (mod __lingxia_native { pub fn install() })

Intended as a build-dependency so build.rs can produce the artifacts during cargo build, before the lxapp is assembled.