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

cc @RReverser @alexcrichton. I'm not sure if there would be a better or more prominent place to document this problem.

I'm curious if there are examples of importing packages within the JavaScript snippet that'll be bound via `wasm-bindgen`? For example, say I have a JavaScript snippet which imports `lodash` and...

question

### Motivation Right now you can use `js_name` to convert a Rust `foo_bar` into JS `fooBar` (or vice versa). But 99% of the time you want it to be camel...

breaking-change

This PR removes the use of BigUint64Array and BigInt64Array as Safari 14 does not support them. I have also run all the u64 and i64 tests and they work as...

### Motivation For quick and dirty error handling, it's often nice to use `Box`. This doesn't work well with `wasm-bindgen`, however, because `JsValue` doesn't implement `std::error::Error` ### Proposed Solution Implement...

enhancement

### Summary Cannot get a html element by get_element_by_id if the element or the id attribute was added in javascript before rust calls. ### Additional Details I found I cannot...

question

### Motivation Automate the maintenance of IDL files used to generate WASM bindings by using the fragments maintained at the source in the webref project. ### Proposed Solution @tidoust and...

enhancement

## Describe the Bug When [LocalTee](https://docs.rs/walrus/latest/walrus/ir/struct.LocalTee.html) is encountered, wasm-bindgen panics. This happens because this instruction is not handled proeprly. The panic occurs at https://github.com/rustwasm/wasm-bindgen/blob/e4477293c15df8500330b295cb9624dccb2a063b/crates/wasm-interpreter/src/lib.rs#L354-L363 Unlike what the comment suggests, this...

bug

Currently only `Result` is allowed, would it be reasonable to change this to `Result` so long as `I: Into` to allow custom error types to be returned? Happy to open...

### Summary This code generates the following error when run with 0.2.81: ``` #[cfg_attr(target_arch = "wasm32", wasm_bindgen(start))] pub fn run() -> anyhow::Result { ``` ``` error[E0277]: the trait bound `JsValue:...

question