wasm-bindgen
wasm-bindgen copied to clipboard
Facilitating high-level interactions between Wasm modules and JavaScript
Spec: https://w3c.github.io/FileAPI/#ref-for-dom-blob-bytes https://github.com/rustwasm/wasm-bindgen/blob/c35cc9369d5e0dc418986f7811a0dd702fb33ef9/crates/web-sys/webidls/enabled/Blob.webidl#L32-L36 This would be nice to have, as it allows directly going from `Blob` to `Uint8Array`, skipping the `ArrayBuffer` step. If it's just a matter of updating the...
The method `apply` for `js_sys::Function` expects a reference as the first argument to a `js_value` ``` /// The `apply()` method calls a function with a given this value, and arguments...
JS classes are heavily used building block in UI development. It's common for a library like ReactJS or Polymer to provide a component class to extend from. Thus, there should...
### Describe the Bug After processing 2GB of data, Safari's `TextDecoder` refuses to produce any more strings, apparently some sort of (successful) security mitigation that had unintended consequences. We are...
### Describe the Bug Hi, I am a developer of [Aladin Lite](https://github.com/cds-astro/aladin-lite/), an astronomical web app to visualize and zoom into the sky. I am using wasm-bindgen and rust since...
Currently functions return `String` for string value from web-sys, this makes it impossible to remove allocation support from wasm when using web-sys. I think it is possible to avoid needing...
I did `cargo install wasm-bindgen-cli`, and seen: ``` warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0, wasmparser v0.59.0,...
### Describe the Bug chunk load big file will cause memory leaked ### Steps to Reproduce https://github.com/rmGFW/memory-leak-minimal-reproduce
### Describe the Bug If the rust wasm32-unknown-unknown target is compiled with wide-arithmetic SIMD support, wasm-bindgen is unable to understand the op code instructions. ### Steps to Reproduce If applicable,...
This is a weird one. As of the 2024 edition, the `wasm_bindgen` macro, when combined with setting property names on a struct via `paste!`, generates warnings about unsafe code. As...