All apps/wasm-bindgen

wasm-bindgen

wasm-bindgen

Generate bindings between WebAssembly and JavaScript.

Runs as wasm-bindgen|macOS, Linux, Windows

Autocomplete

Fig spec, with what the manifest adds · 22 options
Published once and never changed; check the digest before caching
sha256
c750bb9265f272c5b0968bda694e57c7d45babe7a7a4303bbcff6cd188b5ea8a
Size
3933 bytes
OptionsOn wasm-bindgen itself
--help-h
Show help for wasm-bindgen
--version-v
Show version for wasm-bindgen
--out-dir
Output directory <directory>
--out-name
Set a custom output filename (Without extension. Defaults to crate name) <filename>
--target
What type of output to generate <target>
--no-modules-global
Name of global to assign generated bindings to <name>
--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
Whether or not to use TextEncoder#encodeInto() <option>
--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
ArgumentsPositional, in order
<input>
File name to output the compiled binary bindings · filepaths