Skip to main content

Crate js2zig_core

Crate js2zig_core 

Source

Re-exports§

pub use cabi::write_cabi_metadata;

Modules§

analyzer
Dependency analyzer — scan all JS files, build import graph, and collect analysis results for the transpiler pipeline.
cabi
C ABI wrapper generation and metadata serialization.
host
Host function registry — allows JS code to call custom Rust functions.
native_proto
Native-type system transpilation (anytype + @TypeOf).
parser
pipeline
project
testgen
toml_config
js2rust.toml configuration types and loading logic.
types
zigir
ZigIR — structured intermediate representation between AST and Zig source.

Structs§

BuildConfig
Build behavior configuration.
HostConfig
Host function configuration.
HostFunction
Host function description for FFI binding generation.
ProjectConfig
Multi-file project configuration.
ProjectResult
Result of transpiling a project.

Enums§

HostType
Host function type for FFI binding generation.

Functions§

transpile_project
Multi-file project transpilation: JS entry file → Zig project + cabi_exports.json.