wasm-bindgen <input>
Generate bindings between WebAssembly and JavaScript
Arguments
Name | Description |
---|
input | File name to output the compiled binary bindings |
Options
Name | Description |
---|
--help, -h | Show help for wasm-bindgen |
--version, -v | Show version for wasm-bindgen |
--out-dir <directory> | Output directory |
--out-name <filename> | Set a custom output filename (Without extension. Defaults to crate name) |
--target <target> | What type of output to generate |
--no-modules-global <name> | Name of global to assign generated bindings to |
--browser | Hint that JS should only be compatible with a browser |
--typescript | Output a TypeScript definition file (on by default) |
--no-typescript | Don't emit a *.d.ts file |
--omit-imports | Don't emit imports in generated JavaScript |
--debug | Include otherwise-extraneous debug checks in output |
--no-demangle | Don't demangle Rust symbol names |
--keep-debug | Keep debug sections in wasm files |
--remove-name-section | Remove the debugging `name` section of the file |
--remove-producers-section | Remove the telemetry `producers` section |
--omit-default-module-path | Don't add WebAssembly fallback imports in generated JavaScript |
--encode-into <option> | Whether or not to use TextEncoder#encodeInto() |
--nodejs | Deprecated, use `--target nodejs` |
--web | Deprecated, use `--target web` |
--no-modules | Deprecated, use `--target no-modules` |
--weak-refs | Enable usage of the JS weak references proposal |
--reference-types | Enable usage of WebAssembly reference types |