Skip to main content

Crate js2rust_bridge

Crate js2rust_bridge 

Source

Macros§

js2rust_bridge
Function-like proc-macro: js2rust_bridge!("js_src/main.js", host_fns...).

Structs§

BuildConfig
Simplified build configuration for build.rs. Mirrors js2zig_core::ProjectConfig without exposing the full API.
HostConfig
Host function configuration.
HostFunction
Host function description for FFI binding generation.

Enums§

HostType
Host function type for FFI binding generation.

Functions§

build
Transpile JS → Zig, build the Zig static library, and emit cargo:rustc-link-* directives for the linker.
link
Fallback: scan .js2zig-cache/ and emit link directives without running transpilation or zig build. Used when the proc-macro already did the work.