Substrate node template error#E0463 - can't find crate for std

836 Views Asked by At

I am following the tutorial [importing contracts pallet crate]. Installed nightly-2020-10-06 and cargo build. When I run code get error - "cant find std"_"the wasm32-unknown-unknown target may not be installed". Can not work out where I am going wrong... Have added [dependencies] and [features] runtime code - then ran cargo check... where I get error... Would like to know where I am going wrong, and how too solve issue..

1

There are 1 best solutions below

9
On

depending on the toolchain you're building with you can write

rustup target add wasm32-unknown-unknown --toolchain nightly

or

rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-06

and specify the toolchain with a +<toolchain> in your cargo commands like cargo +nightly build