Skip to main contentCrate js2zig_core
Source pub use cabi::write_cabi_metadata;
- 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.
- 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.
- HostType
- Host function type for FFI binding generation.
- transpile_project
- Multi-file project transpilation: JS entry file → Zig project + cabi_exports.json.