Open BrandonDyer64 opened 1 year ago
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!
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.