wasm-bindgen
wasm-bindgen copied to clipboard
Facilitating high-level interactions between Wasm modules and JavaScript
### Motivation [`GpuSupportedFeatures`](https://docs.rs/web-sys/0.3.59/web_sys/struct.GpuSupportedFeatures.html) doesn't currently have a `has` method despite being `setlike`. This is needed for https://github.com/gfx-rs/wgpu/pull/2986. IDL: ```webidl [Exposed=(Window, DedicatedWorker), SecureContext] interface GPUSupportedFeatures { readonly setlike; }; ``` ###...
### Motivation At the moment number enums are supported. e.g. ``` #[wasm_bindgen] pub enum Enum { A = 10, B = 20, } ``` I would like to support string...
Rust code needs the current script URL to locate files relative to the script, and to run Rust code with working imports in workers and worklets. An intrinsic is the...
wasm-bindgen, as written, makes it impossible to convert to ASM.JS, as it leaves unresolved symbols, and the stub file generated assumes WebAssembly.
Is there a way to remove this third party from the examples, to provide a simpler entry to newcomers? I imagine that people interested in WASM don't necessarily have worked...
### Describe the Bug I have a part of the project in C, so I use emscripten to compile it (the complex Makefile is already present, that's why I don't...
### Motivation First off let me preface, I'm very new to rust and wasm, so there may already be a way to do what I'm about to ask, or a...
The documentation for JsValue contains this text. "A JsValue doesn't actually live in Rust right now but actually in a table owned by the wasm-bindgen generated JS glue code. Eventually...
### Motivation It would be useful to be able to call the `showPicker()` JS method from rust. ### Proposed Solution Add method for JS method `showPicker()` on `HtmlInputElement`s. Should return...
Fixes #2969 This changes `wasm-bindgen-wasm-interpreter` to ignore a function rather than panicking if it contains an unsupported instruction. This works around some runtime glue that gets added to our descriptor...