wasm-bindgen
wasm-bindgen copied to clipboard
Facilitating high-level interactions between Wasm modules and JavaScript
This example runs an oscillator in WASM inside an audio worklet. Volume and frequency is controllable in the UI exposed by the main thread. A design goal was to abstract...
### Summary Could it be updated to v3 as the new ubuntu 22.04 has version 3.
### Motivation If you have a web extension written in Rust and compiled to wasm, you can only run **wasm-bindgen-test** in a browser (with the help of __wasm-bindgen-test-runner__ and __webdriver__)...
### Motivation Break the `ahash` dependency cycle: ``` error: cyclic package dependency: package ahash v0.7.4 depends on itself. Cycle: package ahash v0.7.4 ... which is depended on by hashbrown v0.11.2...
Tested on firefox and edge (on fedora) with my own trait on top locally, I could not get it to run off a path dep due to ``` thread 'main'...
### Describe the Bug Generated constants are not upper snake case and this triggers warnings from the `rust-analyzer`. ### Steps to Reproduce Save this code to a `.rs` file: ```...
It seems wasm-bindgen does not check that identifiers that are valid in Rust code might not be valid in JavaScript. Building a project containing a function like this: ```rs use...
```Rust #[wasm_bindgen] // blabla getter, constructor also on an impl struct TopStruct { attr1: SomeStructWithALotOfOptions, attr2: Array // in fact it is an array of ShameStruct -> would be a...
Tries to fix #2073 I honestly don't know what I'm doing but I really want this and it sure will be a nice addition to the ecosystem. - [x] Correctly...
### Summary I'm using `set_onload` on the document object and for some reason `set_onclick` works but `set_onload` doesn't this is not a web api issue but can a be a...