Rust to WebAssembly the Hard Waysurma.dev 6 pointsd12bb3 years ago2 commentsSaveHideCopy link On HNComments−yohamta3yThanks for the article. I tried it but somehow the compilation command doesn't work on my local: "$ cargo run --target=wasm32-unknown-unknown --release" error: a bin target must be available for `cargo run`−yohamta3yIt seems the correct command is "cargo build --target wasm32-unknown-unknown --release".
Comments
Thanks for the article. I tried it but somehow the compilation command doesn't work on my local: "$ cargo run --target=wasm32-unknown-unknown --release" error: a bin target must be available for `cargo run`
It seems the correct command is "cargo build --target wasm32-unknown-unknown --release".