Hi I'm following these docs and getting an error even though I'm wadding the web assembly build target https://docs.wasmtime.dev/tutorial-create-hello-world.html
error[E0463]: can't find crate for std
|
= note: the wasm32-wasi
target may not be installed
= help: consider downloading the target with rustup target add wasm32-wasi
error: cannot find macro println
in this scope
--> src/main.rs:2:5
|
2 | println!("Hello, world!");
| ^^^^^^^
error: requires sized
lang_item
it looks like you need to add the wasm32-wasi
target, running the suggested rustup
command should do the trick:
rustup target add wasm32-wasi
Last updated: Nov 22 2024 at 17:03 UTC