Rust WASM hello world – no need for webpack!
https://www.artificialworlds.net/blog/2023/06/27/rust-wasm-hello-world-no-need-for-webpack/
Turns out you don't need webpack at all for your #rust web apps!
Rust WASM hello world – no need for webpack!
https://www.artificialworlds.net/blog/2023/06/27/rust-wasm-hello-world-no-need-for-webpack/
Turns out you don't need webpack at all for your #rust web apps!
@andybalaam what about Rust/WASI/WASM in the browser?
I think that Rust target and/or packager broke a year or two ago. 😦
@happyborg It works for me today...
What exactly was broken?
@andybalaam I forget, but recently saw that an issue about this was still unresolved.
Do you have a github showing how you are doing this?
My old #p2pgit project is on there still so I could have a look.
EDIT:
This is the project. I think there was a drop off in support for either wasm-bindgen and/or the rust-wasi target.
@andybalaam looks like you are not using WASI or am I missing something?
That was where the issue was, using Rust/WASI in browser. I think wasm-pack wasn't maintaining support for the rust-wasi target or somth.