`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 callprintln!
. We could usewasm32-wasi
instead, but this drastically increases binary size.Perhaps some kind of
#![no_std]
support could be added, or a trick for makingwasi
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!