Rust rules

rust_wasm_bindgen

Generates javascript and typescript bindings for a webassembly module.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
bindgen_flagsFlags to pass directly to the bindgen executable. See https://github.com/rustwasm/wasm-bindgen/ for details.List of stringsoptional[]
wasm_fileThe .wasm file to generate bindings for.LabeloptionalNone

rust_wasm_bindgen_toolchain

The tools required for the rust_wasm_bindgen rule.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
bindgenThe label of a bindgen executable.LabeloptionalNone