wasm-bindgen
wasm-bindgen copied to clipboard
Facilitating high-level interactions between Wasm modules and JavaScript
### Summary I'm attempting to generate JS for a simple struct in Rust - ``` #[wasm_bindgen] #[derive(PartialEq, Eq, Clone, Debug)] pub struct ListNode { pub val: i32, pub next: Option,...
### src/lib.rs: ```rust #[derive(Debug, Clone, Serialize, Default, Deserialize)] #[wasm_bindgen] pub struct Foo { bar: Bar, } #[derive(Debug, Clone, Serialize, Default, Deserialize)] #[wasm_bindgen] pub struct Bar { inner: String, } #[wasm_bindgen]...
### Motivation With the heavy usage of Sharedarraybuffers/Arra/Buffers, to share data between workers, you find yourself only using the js typedarrays to operate with the data within the structure. One...
### Summary I am trying to follow examples/deno to build my project, but an error raises `package(s) `wasm-bindgen-cli` not found in workspace`. I check the build.sh and find a binary...
MDN says that WorkerGlobalScope has `performance` in Chrome and Firefox: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/performance `web-sys` doesn't seem to export this: https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.WorkerGlobalScope.html Is this expected? If so, what is the right way to get...
### Describe the Bug When using webpack 5, enabling `asyncWebAssembly: true` in the webpack config will cause errors when trying to load a module generated from wasm-bindgen: ``` ReferenceError: Cannot...
### Summary Hi! I want to implement something like deep equal on `Rust` to speed up comparing `AST` nodes in 🐊[Putout](https://github.com/coderaiser/putout) code transformer. Right now I have such code: ```rust...
The following SVG element types should have their fourth letter capitalised: - SvgaElement - SvgfeBlendElement - SvgfeColorMatrixElement - SvgfeComponentTransferElement - SvgfeCompositeElement - SvgfeConvolveMatrixElement - SvgfeDiffuseLightingElement - SvgfeDisplacementMapElement - SvgfeDistantLightElement -...
### Describe the Bug `dictionary` types from WebIDL do not have getters. You can only mutate dictionaries, and never read them. This is weird, considering how they're often used as...
### Summary I am profiling the wasm performance of a function, which runs for more than 5 minutes. Then I get the following error: `got: {"sessionId":"6eed583a92cc19dbbecdfb0c114d7d25","status":21,"value":{"message":"timeout: Timed out receiving message...