Skip to main contentCrate js2zig_core
Source - analyzer
- Dependency analyzer — scan all JS files, build import graph,
and partition files into groups (one core file + its transitive deps).
- host
- Host function registry — allows JS code to call custom Rust functions.
- native_proto
- Prototype: native-type system (anytype + @TypeOf).
Work in progress, not integrated into pipeline yet.
- parser
- pipeline
- project
- sourcemap
- Source map: tracks JS source locations → generated Zig line numbers.
- testgen
- GroupResult
- Result of transpiling a single group.
- HostConfig
- Host function configuration.
- HostFunction
- Host function description for FFI binding generation.
- ProjectConfig
- Multi-file project configuration.
- ProjectResult
- Result of transpiling a project (all groups).
- HostType
- Host function type for FFI binding generation.
- transpile_project
- Multi-file project transpilation: JS core file → Zig project + cabi_exports.json.
- write_cabi_metadata
- Write C ABI metadata for a single group project.
(Kept for backward compatibility; called from
pipeline.rs.)