I want to try both Haxe and wasm Rust but I am having some trouble setting up wasm Rust.
I have alreayd installead wasm via cargo cargo install wasm-pack on cmd (using Windows), I have already created a trait for the object and I have linked a wasm file to the object as shown.
Yes you have. There are not Native rust bindings, so your actually are calling C++ from rust, and the requires wiring external bindings. With more includes and internal stuff usage, even more. Rust bindgen lib can a bit automate that, but it does really work well only with pure C. And if you will need to return an object from C++ it will be become a nightmare (in some situations have to do garbage cleaning on your side). Also this way you have to use unsafe blocks, so you lose the Rust safety super-powers. And this is not the END :D. I know this, as I have been using Rust for years…, working also with ex-tern C bindings and it’s not a fun ride. Right now this Rust usage, in my opinion, is more like a neat experiment. Do not plan big things with it