near/boilerplate-template-rs

Npm run build error

Opened this issue · 0 comments

➜  boilerplate-template-rs git:(main) npm run build

> boilerplate-template-rs@1.0.0 build
> npm run build:contract && npm run build:frontend


> boilerplate-template-rs@1.0.0 build:contract
> cd contract && ./build.sh

>> Building contract
info: component 'rust-std' for target 'wasm32-unknown-unknown' is up to date
   Compiling once_cell v1.17.0
   Compiling itoa v1.0.5
   Compiling quote v1.0.23
   Compiling ryu v1.0.12
   Compiling crunchy v0.2.2
   Compiling toml v0.5.10
   Compiling schemars v0.8.11
   Compiling dyn-clone v1.0.10
   Compiling wee_alloc v0.4.5
   Compiling semver v1.0.16
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 `alloc`
  --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dyn-clone-1.0.10/src/lib.rs:91:1
   |
91 | extern crate alloc;
   | ^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0463]: can't find crate for `alloc`
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/lib.rs:339:1
    |
339 | extern crate alloc;
    | ^^^^^^^^^^^^^^^^^^^ can't find crate

libunwind: malformed __unwind_info at 0x1829FACA8 bad second level page
error[E0463]: can't find crate for `core`
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dyn-clone-1.0.10/src/lib.rs:102:13
    |
102 |     pub use core::clone::Clone;
    |             ^^^^ 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`

error[E0463]: can't find crate for `core`
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dyn-clone-1.0.10/src/lib.rs:103:13
    |
103 |     pub use core::marker::{Send, Sync};
    |             ^^^^ 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`

error: cannot find macro `assert_eq` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dyn-clone-1.0.10/src/lib.rs:143:9
    |
143 |         assert_eq!(*data_ptr as *const (), t as *const T as *const ());
    |         ^^^^^^^^^

libunwind: malformed __unwind_info at 0x1829FACA8 bad second level page
error[E0463]: can't find crate for `core`
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/lib.rs:355:9
    |
355 |     use core::{
    |         ^^^^ 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`

libunwind: malformed __unwind_info at 0x1829FACA8 bad second level page
error[E0463]: can't find crate for `core`
  --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itoa-1.0.5/src/lib.rs:44:5
   |
44 | 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`

error[E0463]: can't find crate for `core`
  --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itoa-1.0.5/src/lib.rs:45:5
   |
45 | use core::{ptr, slice, str};
   |     ^^^^ 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`

error: cannot find macro `debug_assert_eq` in this scope
  --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itoa-1.0.5/src/udiv128.rs:44:5
   |
44 |     debug_assert_eq!(quot, n / d as u128);
   |     ^^^^^^^^^^^^^^^

error: cannot find macro `debug_assert_eq` in this scope
  --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itoa-1.0.5/src/udiv128.rs:45:5
   |
45 |     debug_assert_eq!(rem as u128, n % d as u128);
   |     ^^^^^^^^^^^^^^^

error[E0463]: can't find crate for `std`
  |
  = 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 `alloc`
  --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/lib.rs:90:1
   |
90 | extern crate alloc;
   | ^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0463]: can't find crate for `core`
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:273:9
    |
273 |     use core::{marker::PhantomData, ptr};
    |         ^^^^ 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`

error[E0405]: cannot find trait `Default` in this scope
  --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itoa-1.0.5/src/lib.rs:63:6
   |
63 | impl Default for Buffer {
   |      ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Clone` in this scope
  --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itoa-1.0.5/src/lib.rs:70:6
   |
70 | impl Clone for Buffer {
   |      ^^^^^ not found in this scope

error[E0405]: cannot find trait `Copy` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itoa-1.0.5/src/lib.rs:105:23
    |
105 |     pub trait Sealed: Copy {
    |                       ^^^^ not found in this scope

error[E0463]: can't find crate for `core`
  --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:25:5
   |
25 | use core::sync::atomic;
   |     ^^^^ 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`

error[E0405]: cannot find trait `Clone` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dyn-clone-1.0.10/src/lib.rs:108:13
    |
108 |     impl<T: Clone> Sealed for T {}
    |             ^^^^^ not found in this scope

error[E0463]: can't find crate for `core`
  --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:28:5
   |
28 | use core::cell::UnsafeCell;
   |     ^^^^ 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`

error[E0405]: cannot find trait `Clone` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dyn-clone-1.0.10/src/lib.rs:110:13
    |
110 |     impl<T: Clone> Sealed for [T] {}
    |             ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dyn-clone-1.0.10/src/lib.rs:138:9
    |
138 |     T: ?Sized + DynClone,
    |         ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dyn-clone-1.0.10/src/lib.rs:152:9
    |
152 |     T: ?Sized + DynClone,
    |         ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dyn-clone-1.0.10/src/lib.rs:178:9
    |
178 |     T: ?Sized + DynClone,


...

error[E0405]: cannot find trait `FnOnce` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:346:16
    |
346 |             F: FnOnce() -> Box<T>,
    |                ^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:350:17
    |
350 |                 Ok(val) => val,
    |                 ^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:351:17
    |
351 |                 Err(void) => match void {},
    |                 ^^^ not found in this scope

error[E0405]: cannot find trait `FnOnce` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:364:16
    |
364 |             F: FnOnce() -> Result<Box<T>, E>,
    |                ^^^^^^ not found in this scope

error[E0412]: cannot find type `Result` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:364:28
    |
364 |             F: FnOnce() -> Result<Box<T>, E>,
    |                            ^^^^^^ not found in this scope

error[E0412]: cannot find type `Result` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:362:54
    |
362 |         pub fn get_or_try_init<F, E>(&self, f: F) -> Result<&T, E>
    |                                                      ^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:377:24
    |
377 |                 if let Err(old) = exchange {
    |                        ^^^ not found in this scope

error[E0405]: cannot find trait `Sync` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:386:33
    |
386 |     unsafe impl<T: Sync + Send> Sync for OnceBox<T> {}
    |                                 ^^^^ not found in this scope

error[E0405]: cannot find trait `Sync` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:386:20
    |
386 |     unsafe impl<T: Sync + Send> Sync for OnceBox<T> {}
    |                    ^^^^ not found in this scope

error[E0405]: cannot find trait `Send` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/race.rs:386:27
    |
386 |     unsafe impl<T: Sync + Send> Sync for OnceBox<T> {}
    |                           ^^^^ not found in this scope

error[E0412]: cannot find type `Option` in this scope
    --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.17.0/src/lib.rs:1376:36
     |
1376 | unsafe fn unwrap_unchecked<T>(val: Option<T>) -> T {
     |                                    ^^^^^^ not found in this scope
...
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:267:32
    |
267 |     } else if bytes.first() == Some(&b'>') {
    |                                ^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:268:28
    |
268 |         if bytes.get(1) == Some(&b'=') {
    |                            ^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:273:32
    |
273 |     } else if bytes.first() == Some(&b'<') {
    |                                ^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:274:28
    |
274 |         if bytes.get(1) == Some(&b'=') {
    |                            ^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:279:32
    |
279 |     } else if bytes.first() == Some(&b'~') {
    |                                ^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:281:32
    |
281 |     } else if bytes.first() == Some(&b'^') {
    |                                ^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:307:14
    |
307 |             (Some(minor), text)
    |              ^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:321:20
    |
321 |             return Err(Error::new(ErrorKind::UnexpectedAfterWildcard));
    |                    ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:324:14
    |
324 |             (Some(patch), text)
    |              ^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:335:20
    |
335 |             return Err(Error::new(ErrorKind::EmptySegment(pos)));
    |                    ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:347:20
    |
347 |             return Err(Error::new(ErrorKind::EmptySegment(pos)));
    |                    ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:364:5
    |
364 |     Ok((comparator, pos, text))
    |     ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:377:20
    |
377 |             return Err(error);
    |                    ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:384:16
    |
384 |         return Ok(depth + 1);
    |                ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:391:16
    |
391 | ...   return Err(Error::new(ErrorKind::ExpectedCommaFound(pos, unexpect...
    |              ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:396:16
    |
396 |         return Err(Error::new(ErrorKind::ExcessiveComparators));
    |                ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.16/src/parse.rs:404:5
    |
404 |     Ok(len)
    |     ^^ not found in this scope

Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0463, E0531.
error: could not compile `semver` (lib) due to 198 previous errors