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

### Motivation https://github.com/rustwasm/wasm-bindgen/pull/1754 added support for `#[wasm_bindgen]` on `async` functions, which is great, because it generates a method on the Javascript side with a strong return type of `Promise`. However,...

enhancement

The reference tests for imports used invalid syntax, and because we don't error on attributes in invalid position by default, it was silently passing anyway. I've changed the import attributes...

This PR merges two proc macros that make `js_sys::Array` and `js_sys::Object` creation and instantiation easier. Currently, to create an `Object`, you must use the `Reflect` API. Retrieving a property requires...

I have ``` let html_children0 = idoc.query_selector_all("h1,h2,h3,h4,h5,h6,p,img").unwrap(); ... let child = html_children0.item(i).unwrap().dyn_into::().unwrap(); ``` This panics when trying to `dyn_into` with: ``` called `Result::unwrap()` on an `Err` value: Node { obj:...

Deno 2.1 added support for standard Wasm modules (though there was a bug where it was missing exports like `memory`, though that's now fixed in the latest canary version `deno...

enhancement

When node is missing or can`t be found by the test-runner the error presented is currently only `File not found (os error 2)` without giving any hint that it is...

An `#[expect]` outer attribute must not be kept in the `#[automatically_derived]` code, as the expanded code will probably not meet the expectations. Transforming it into the equivalent `#[allow]` attribute is...

Adds `--target emscripten` option, which will output JS that Emscripten can consume and integrate into its own JS. This is still a work-in-progress, but it's getting kind of beefy, so...

Currently this variable is using fixed string `wasm_bindgen`. Maybe it's better to expose this as a customizable flag.

enhancement

### Describe the Bug Running --exact with name/path of a test does not run the test. this prevents cargo-nextest from working, https://github.com/nextest-rs/nextest/issues/2372#issuecomment-2927914388 Reproduction: https://github.com/insipx/nextest-wasm/blob/main/ ### Steps to Reproduce 1. [repo...

bug