crescware / moment-digest

0 stars 0 forks source link

Cargo依存関係を最新に #6

Closed okunokentaro closed 11 months ago

okunokentaro commented 11 months ago

先日とマシンを変えたら膨大なエラーが出た。

error[E0463]: can't find crate for `core`
  |
  = note: the `wasm32-unknown-unknown` target may not be installed
  = help: consider downloading the target with `rustup target add wasm32-unknown-unknown`

error[E0463]: can't find crate for `compiler_builtins`

error[E0463]: can't find crate for `core`
  --> /Users/okunokentaro/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itoa-1.0.9/src/lib.rs:45:5
   |
45 | use core::mem::{self, MaybeUninit};
   |     ^^^^ can't find crate
   |
   = note: the `wasm32-unknown-unknown` target may not be installed
   = help: consider downloading the target with `rustup target add wasm32-unknown-unknown`

どうやらこのマシンではWASM開発が初だったらしく、それで必要なターゲットが含まれてなかったぽい。なので追加でインストールを実施。

rustup target add wasm32-unknown-unknown