Expand description
Host function registry — allows JS code to call custom Rust functions.
This module provides a registry where developers can register Rust functions
(marked #[no_mangle] pub extern "C") that should be callable from
translated JS/Zig code via the C ABI.
§Usage
In main.rs, create a HostFnRegistry, register Rust functions, and pass it
to project.rs for metadata generation and to builtins/codegen for translation.
Structs§
- Host
FnDef - Definition of a single host function that JS can call.
- Host
FnRegistry - Registry of Rust host functions exposed to JS via C ABI.
- Host
Struct Def - Definition of a struct used by host functions.
- Host
Struct Field - A field in a host struct (for C ABI ↔ Zig conversion).