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! – Andy Balaam's Blog

@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.

https://github.com/happybeing/p2p-git-portal-wasi

GitHub - happybeing/p2p-git-portal-wasi: Peer-to-peer Git Portal in Svelte, Rust/WASI on WasmerJS

Peer-to-peer Git Portal in Svelte, Rust/WASI on WasmerJS - GitHub - happybeing/p2p-git-portal-wasi: Peer-to-peer Git Portal in Svelte, Rust/WASI on WasmerJS

GitHub
reflower

A multiplayer against-the-clock game of restoring wildness to barren landscapes.

Codeberg.org

@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.

@happyborg ah sorry I totally missed that you mentioned WASI. Yeah, I am not using that.