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 Attempting to rebuild web-sys with the current WebGPU IDL produces an error that seems mistargetted. ### Steps to Reproduce 1. Replace contents of `crates/web-sys/webidls/unstable/WebGPU.webidl` with https://gpuweb.github.io/gpuweb/#idl-index...

bug

So the WebXR spec has these 'opaque' framebuffers that you're meant to bind in WebGL: https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebuffer It turns out that what 'opaque' means in this context is that the `.framebuffer`...

I'm trying to solve https://github.com/rustwasm/wasm-bindgen/issues/2231, and the first immediate step is to make `JsValue.idx` visible to the world. There is nothing particularly dangerous to allow that.

### Describe the Bug Per webauthn l3 https://www.w3.org/TR/webauthn-3/#iface-authenticatorattestationresponse AuthenticatorAttestationResponse should have access to a function named 'getTransports'. This is documented by MDN at https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse However, web_sys' https://docs.rs/web-sys/latest/web_sys/struct.AuthenticatorAttestationResponse.html does not provide...

bug

### Motivation Current implementation of `wasm-bindgen-test` does not support multithreading WASM well. As a common feature of WASM, there is need to put it on the agenda. ### Proposed Solution...

enhancement

### Describe the Bug wasm-bindgen cli is panicking when passed a wasm binary. ### Steps to Reproduce 1. Run `cargo wasi build --release` or `cargo build --target=wasm32-wasi --release` 2. If...

bug

### Motivation Provide accurate error message when aborting fetch programmatically without user input. ### Proposed Solution Support `abort(reason)` call on [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort). ### Alternatives None known to me. ### Additional Context...

enhancement

This commit moves to having a struct per `syn::Item` type that the macro operates on, then uses `darling` to handle validation of the attribute. This implicitly fixes #2874, since `darling`...

### Describe the Bug The `#[wasm_bindgen]` attribute accepts (some?) fields without error, but doesn't use them. ### Steps to Reproduce ```rust #[wasm_bindgen] pub struct MyStruct { hello: String, } #[wasm_bindgen]...

bug

Hi all we are trying to set proper types on getter and setters rather than it just showing as `any` from typescript on the field `test3`. However, we can find...

question