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

Currently it's impossible to properly implement WASM multi-threading as a library without the user having to use some workaround to prevent `main` to be called. I was thinking of just...

### Summary Help, rust-protobuf was introduced in the rust project I developed. After using wasm-bindgen, the project compilation error will occur, the error is as follows。 ![image](https://user-images.githubusercontent.com/18412751/190303834-1af74c21-ca13-422b-9beb-15f6166088ef.png) The same code...

question

### Summary `wasm-bindgen` generates JavaScript bindings for SystemInstruction exported from `solana-program`. The generated JavaScript references a non-existent function `wasm.__wbg_systeminstruction_free` that leads to an attempted import error when importing the wasm...

question

I have a structure `TestStruct`, When I take its reference as a parameter of an export function, it's OK, but once I put this export function in the macro, I...

bug

### Describe the Bug The wasm-bindgen-futures crate uses [Atomics.waitAsync()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/waitAsync) for [muli-threaded/atomic](https://github.com/rustwasm/wasm-bindgen/blob/main/crates/futures/src/task/multithread.rs) usecases. This is not supported in Safari, therefore it fallsback to a [polyfill](https://github.com/rustwasm/wasm-bindgen/blob/main/crates/futures/src/task/wait_async_polyfill.rs) which uses WebWorkers to fill it....

bug

### Motivation I think it would be great to support something like this: ```rust #[wasm_bindgen(start)] async fn main() { } ``` It would add a bit of quality-of-life to prevent...

enhancement

The `ast::ImportModule` is only depends on `BindgenAttrs`, not on `syn::ItemForeignMod`, so the function can be factored out. (Also, simplify the check for other ABIs.)

I noticed dependent module support are two separate things: Import handling, and linked modules. Their implementations are separated into different commits in this branch. Import handling and linked modules are...

### Describe the Bug We're currently jest-testing a `wasm-pack` built library running inside of a Next.js application. Build target is `web`. Jest version is `27.5.1`. The errors and solutions so...

bug

The following code does not work currently, the goal of this PR is to fix it. ```rust #[wasm_bindgen] pub async fn foo() -> Result { Ok(std::ptr::null()) } ``` The base...