How to re-initialize a module generated by wasm-bindgen?
How do I instanciate multiple wasm modules generated using wasm-bindgen?
Rust, bindgen, non-Sized dyn traits, HashMap, static variables: looking for relevant documentation
I have been trying to build a thin bindgen
-based wrapper between React
and Egui
(a GUI library written in Rust). I wish to let Rust manage all the complex, static objects and let the JS layer insert and remove data primarily via basic functions and JSON data.
Can a WebAssembly::Memory SharedArrayBuffer be read as a slice without copying?
Context I wrote a small genetics library in JavaScript for a browser-based game. The library consists of entirely static methods that operate on typed arrays. For example: // 2 implies there are 2 variants of this gene (in our case, “A” or “O”): const a_type_blood = Genetics.Gene(2); // Returns: [2] // same as above (“B” […]
Rust: Can a WebAssembly::Memory SharedArrayBuffer be read as a slice without copying?
Context I wrote a small genetics library in JavaScript for a browser-based game. The library consists of entirely static methods that operate on typed arrays. For example: // 2 implies there are 2 variants of this gene (in our case, “A” or “O”): const a_type_blood = Genetics.Gene(2); // Returns: [2] // same as above (“B” […]