You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to print things to the console in a standardized way, use println! instead.
But when I use println!, I don't get any output in the console.
All I've done is cargo new foobar, add stdweb="0.4.20" to my Cargo.toml, and do cargo web start, and all it ever says in console is
Finished loading Rust wasm module 'foobar'
I know it's otherwise working, though, because other code I put in there does stuff, like using stdweb::console!(log, "Hello World!"); instead of println! prints to console just fine.
The text was updated successfully, but these errors were encountered:
The
console!
macro documentation saysBut when I use
println!
, I don't get any output in the console.All I've done is
cargo new foobar
, addstdweb="0.4.20"
to myCargo.toml
, and docargo web start
, and all it ever says in console isI know it's otherwise working, though, because other code I put in there does stuff, like using
stdweb::console!(log, "Hello World!");
instead ofprintln!
prints to console just fine.The text was updated successfully, but these errors were encountered: