Skip to main content

build

Function build 

Source
pub fn build(force_rebuild: bool)
Expand description

Build: transpile JS → Zig, compile Zig static library, and emit linker directives.

Reads configuration from js2rust.toml in the crate root. Call this from your build.rs with zero arguments:

ⓘ
fn main() {
    js2rust_bridge::build();
}

The group name is derived automatically from the file stem of project.js_file.