Rust WASM-bindgen rules for interfacing with bazelbuild/rules_nodejs ## nodejs_rust_wasm_bindgen
nodejs_rust_wasm_bindgen(name, bindgen_flags, target, target_arch, wasm_file)Generates javascript and typescript bindings for a webassembly module using [wasm-bindgen][ws] that interface with [bazelbuild/rules_nodejs][bbnjs]. [ws]: https://rustwasm.github.io/docs/wasm-bindgen/ [bbnjs]: https://github.com/bazelbuild/rules_nodejs **ATTRIBUTES** | Name | Description | Type | Mandatory | Default | | :------------- | :------------- | :------------- | :------------- | :------------- | | name | A unique name for this target. | Name | required | | | bindgen_flags | Flags to pass directly to the bindgen executable. See https://github.com/rustwasm/wasm-bindgen/ for details. | List of strings | optional | `[]` | | target | The type of output to generate. See https://rustwasm.github.io/wasm-bindgen/reference/deployment.html for details. | String | optional | `"bundler"` | | target_arch | The target architecture to use for the wasm-bindgen command line option. | String | optional | `"wasm32"` | | wasm_file | The `.wasm` file or crate to generate bindings for. | Label | required | |