In JS I am constantly updating values which Rust will use. Right now I need to sent the values through a Rust function converted from WASM in JS, so that Rust itself can acces and use it. This doesn't sound very optimal to me.
The point is that I was able to play with parts of that tutorial without using npm, and you might learn something too about Rust/JS interop by working through that section.
If you can't get Implementing Life - Rust and WebAssembly to work, you lack the proper foundation for the two of us to have a productive conversation on Rust/JS interop.
Do you have more links and/or examples for using cargo build --target=wasm32-unknown-unknown --release. I see you'd need to use some different stuff like no mangler etc. I can't seem to find a lot of examples. Maybe with this I'll get some more control and will be able to understand the flow better as well. Since wasm-pack still does it for me.
Also I thought --target web means no bundler. But I don;t really follow what a bundler is than, since wasm-pack is a bundler I thought, but you combine those two. And when I'm compiling it does actually seem to bundle stuff as well.
I do not understand why you refuse to just work through Implementing Life - Rust and WebAssembly after I have repeatedly shown that that particular section does the Rust / JS interop you are describing.
Therefore, I am going to walk away and let someone more patient than me help you.
You're not making any sense. I'm specifically asking how to run stuff with --target=wasm32-unknown-unknown. And the game of life is also still using npm, as you know. So I don't care to learn to use npm. Since it's not going to work with wasm-pack or --target=wasm32-unknown-unknown.
I've already worked through the example with wasm-pack, but as my actual question still stands, I just want to know how to setup the data stream and the toturial does not show you how to do this with wasm-pack..
Besides (1) publishing to npm and (2) using npm to install the wasm-bindgen tools, can you please point out where in that tutorial is npm required to build the Rust / game of life ?