wasm-bindgen icon indicating copy to clipboard operation
wasm-bindgen copied to clipboard

Facilitating high-level interactions between Wasm modules and JavaScript

Results 412 wasm-bindgen issues
Sort by recently updated
recently updated
newest added

### Describe the Bug My async Rust function, which is exported to JS using wasm_bindgen, blocks the main thread when called. ### Steps to Reproduce This is how the async...

bug

The drop function is unnecessary as it will be droped anyway. But if we leave it and the `struct` implements `Copy` clippy complains about dropping the copy an not the...

It would really be great to be able to return a vector of structs or tuples: For example. I have the following type: ``` #[wasm_bindgen] struct Range { offset: u32,...

more-types

### Summary In the code below, how can I cast the `JsValue` to `Foo`? ```rust #[wasm_bindgen] pub struct Foo(u8); // Assume this can't be serialized or deserialized #[wasm_bindgen] pub fn...

question

### Summary Hey, y'all. First of all, terrific work here! Second, are there any plans to support the multiDraw WebGL Apis? https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw I have been trying to see how much...

question

### Summary The `wasm-bindgen` converts the Rust function that contains `rand:thread_rng()` into js glue code that contains `const ret = module`, no matter `--target bundler` or `--target nodejs`. So an...

question

### Describe the Bug Ambiguous documentation and failing execution of `web_sys::AngleInstancedArrays`. ### Steps to Reproduce I have a Stackoverflow question here: https://stackoverflow.com/questions/72834638/how-to-invoke-rust-web-sys-angleinstancedarrays I've enabled the AngleInstancedArrays in the web-sys.features in...

bug

### Describe the Bug The page of the webGL example seems blank. It shows the following error for me on Firefox 99: (Majaro Linux) ``` TypeError: _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.memory is undefined webpack:///./pkg/index_bg.js?:434...

bug

hello folks :wave: following the hello world example, it's been a pleasure calling rust functions from javascript — but for the other way around, i'm stuck! for days now, i...

question

### Summary I'm really confused about the `ImageData` struct. Is it meant to be read-only? An example from MDN ought to also be possible with WASM, right? ```javascript const imageData...

question