rustyscreeps / cargo-screeps

Build tool for deploying Rust WASM code to Screeps game servers
MIT License
25 stars 13 forks source link

the `wasm32-unknown-unknown` target may not be installed #20

Closed Evlos closed 5 years ago

Evlos commented 5 years ago

Hi,

I'm new to rust, may I get some thoughts about this error?

Thank you.

(*master) λ cargo screeps build                                                                                           (saki) 19:32:06
cargo_screeps::run: compiling...
   Compiling lazy_static v1.4.0
   Compiling regex-syntax v0.6.12
   Compiling log v0.4.8
   Compiling num-derive v0.2.5
   Compiling arrayvec v0.4.12
   Compiling base-x v0.2.6
   Compiling sha1 v0.6.0
   Compiling itoa v0.4.4
error[E0463]: can't find crate for `core`
  |
  = note: the `wasm32-unknown-unknown` target may not be installed

error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `lazy_static`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `std`
  |
  = note: the `wasm32-unknown-unknown` target may not be installed

error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `itoa`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `std`
  |
  = note: the `wasm32-unknown-unknown` target may not be installed

error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `regex-syntax`.
warning: build failed, waiting for other jobs to finish...
error: build failed
error: cargo-web build failed: build failed
Evlos commented 5 years ago

Solved it by installing the newest rust.