BrandonDyer64/bevy_wasm

`println!` and `panic!` support

Opened this issue · 1 comments

Currently, mods made using target wasm32-unknown-unknown cannot call println!. We could use wasm32-wasi instead, but this drastically increases binary size.

Perhaps some kind of #![no_std] support could be added, or a trick for making wasi binaries smaller.

Currently, mods made using target wasm32-unknown-unknown cannot call println!. We could use wasm32-wasi instead, but this drastically increases binary size.

Perhaps some kind of #![no_std] support could be added, or a trick for making wasi binaries smaller.

Hiii!

Yes, I think we could make a simple stream API (something that for the client side interface/mod interface implements Write trait) and reimplement println!() and print!()

Then on the host the user could log them to something like bevy-console or stdout instead!