tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
83.91k stars 2.52k forks source link

[bug] Tauri rust + yew has build errors #7211

Closed lukepighetti closed 1 year ago

lukepighetti commented 1 year ago

Describe the bug

I tried creating a Tauri rust app using yew and I get compiler errors after following all the provided steps

sh <(curl https://create.tauri.app/sh)
# choose Rust > Yew
# edit bundle identifier
cargo install tauri-cli
cargo install trunk
rustup target add wasm32-unknown-unknown
rustup update # on nightly
cargo build # completes without errors
cargo tauri dev

Environment:

ProductName:        macOS
ProductVersion:     13.3.1
ProductVersionExtra:    (a)
BuildVersion:       22E772610a

cargo 1.69.0 (6e9a83356 2023-04-12)
tauri-cli 1.4.0

The following error messages occur and no dev window appears

Logs truncated...

``` Running BeforeDevCommand (`trunk serve`) 2023-06-15T10:38:58.015378Z  INFO 📦 starting build 2023-06-15T10:38:58.015761Z  INFO spawning asset pipelines 2023-06-15T10:38:58.158975Z  INFO building tauri-rust-ui 2023-06-15T10:38:58.158980Z  INFO copying & hashing css path="styles.css" 2023-06-15T10:38:58.158985Z  INFO copying directory path="public" 2023-06-15T10:38:58.159210Z  INFO finished copying & hashing css path="styles.css" 2023-06-15T10:38:58.159504Z  INFO finished copying directory path="public" Compiling itoa v1.0.6 Compiling ryu v1.0.13 Compiling cfg-if v1.0.0 Compiling futures-sink v0.3.28 Compiling futures-core v0.3.28 Compiling serde v1.0.164 Compiling thiserror v1.0.40 Compiling pin-project-lite v0.2.9 Compiling percent-encoding v2.3.0 Compiling syn v1.0.109 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` For more information about this error, try `rustc --explain E0463`. error: could not compile `cfg-if` due to 2 previous errors warning: build failed, waiting for other jobs to finish... error[E0463]: can't find crate for `core` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-1.0.6/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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-1.0.6/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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-1.0.6/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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-1.0.6/src/udiv128.rs:45:5 | 45 | debug_assert_eq!(rem as u128, n % d as u128); | ^^^^^^^^^^^^^^^ error[E0405]: cannot find trait `Default` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-1.0.6/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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-1.0.6/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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-1.0.6/src/lib.rs:105:23 | 105 | pub trait Sealed: Copy { | ^^^^ not found in this scope error[E0463]: can't find crate for `core` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/buffer/mod.rs:2:5 | 2 | use core::mem::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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/buffer/mod.rs:3:5 | 3 | use core::{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[E0463]: can't find crate for `core` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/d2s.rs:27:5 | 27 | use core::mem::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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/d2s_intrinsics.rs:21:5 | 21 | use core::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[E0463]: can't find crate for `core` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/pretty/exponent.rs:2:5 | 2 | use core::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[E0463]: can't find crate for `core` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/pretty/mantissa.rs:2:5 | 2 | use core::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[E0463]: can't find crate for `core` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/pretty/mod.rs:9:5 | 9 | use core::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: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/pretty/mod.rs:181:5 | 181 | debug_assert!(k >= -45); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/pretty/mod.rs:75:5 | 75 | debug_assert!(k >= -324); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/pretty/exponent.rs:39:5 | 39 | debug_assert!(k < 100); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/pretty/exponent.rs:13:5 | 13 | debug_assert!(k < 1000); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/f2s_intrinsics.rs:110:9 | 110 | debug_assert!(i < d2s::DOUBLE_POW5_SPLIT.len() as u32); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/f2s_intrinsics.rs:89:9 | 89 | debug_assert!(q < d2s::DOUBLE_POW5_INV_SPLIT.len() as u32); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/f2s_intrinsics.rs:70:5 | 70 | debug_assert!(shifted_sum <= u32::max_value() as u64); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/f2s_intrinsics.rs:59:5 | 59 | debug_assert!(shift > 32); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/f2s_intrinsics.rs:30:9 | 30 | debug_assert!(value != 0); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/d2s_intrinsics.rs:65:5 | 65 | debug_assert!(p < 64); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/d2s_intrinsics.rs:64:5 | 64 | debug_assert!(value != 0); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/d2s_intrinsics.rs:42:9 | 42 | debug_assert!(value != 0); | ^^^^^^^^^^^^ Some errors have detailed explanations: E0405, E0463. For more information about an error, try `rustc --explain E0405`. error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/d2s.rs:178:21 | 178 | debug_assert!(i < DOUBLE_POW5_SPLIT.len() as i32); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/d2s.rs:136:21 | 136 | debug_assert!(q < DOUBLE_POW5_INV_SPLIT.len() as u32); | ^^^^^^^^^^^^ error[E0463]: can't find crate for `core` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-lite-0.2.9/src/lib.rs:1503:9 | 1503 | use core::mem::ManuallyDrop; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-lite-0.2.9/src/lib.rs:1505:13 | 1505 | pub 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` error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/d2s.rs:41:5 | 41 | debug_assert!(v < 100000000000000000); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/common.rs:93:5 | 93 | debug_assert!(e <= 2620); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/common.rs:92:5 | 92 | debug_assert!(e >= 0); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/common.rs:84:5 | 84 | debug_assert!(e <= 1650); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/common.rs:83:5 | 83 | debug_assert!(e >= 0); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/common.rs:69:5 | 69 | debug_assert!(e <= 3528); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/common.rs:68:5 | 68 | debug_assert!(e >= 0); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/common.rs:58:5 | 58 | debug_assert!(e <= 3528); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/common.rs:57:5 | 57 | debug_assert!(e >= 0); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/common.rs:27:5 | 27 | debug_assert!(v < 1000000000); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/buffer/mod.rs:75:13 | 75 | debug_assert!(n <= self.bytes.len()); | ^^^^^^^^^^^^ error: could not compile `itoa` due to 9 previous errors error[E0405]: cannot find trait `Copy` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/buffer/mod.rs:82:6 | 82 | impl Copy for Buffer {} | ^^^^ not found in this scope error[E0405]: cannot find trait `Clone` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/buffer/mod.rs:84:6 | 84 | impl Clone for Buffer { | ^^^^^ not found in this scope error[E0405]: cannot find trait `Default` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/buffer/mod.rs:91:6 | 91 | impl Default for Buffer { | ^^^^^^^ not found in this scope error[E0405]: cannot find trait `Copy` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.13/src/buffer/mod.rs:108:19 | 108 | pub trait Sealed: Copy { | ^^^^ not found in this scope error[E0405]: cannot find trait `Sized` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-lite-0.2.9/src/lib.rs:1514:32 | 1514 | pub struct AlwaysUnpin(PhantomData); | ^^^^^ not found in this scope error[E0405]: cannot find trait `Sized` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-lite-0.2.9/src/lib.rs:1516:14 | 1516 | impl Unpin for AlwaysUnpin {} | ^^^^^ not found in this scope error[E0405]: cannot find trait `Sized` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-lite-0.2.9/src/lib.rs:1520:43 | 1520 | pub struct UnsafeDropInPlaceGuard(*mut T); | ^^^^^ not found in this scope error[E0405]: cannot find trait `Sized` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-lite-0.2.9/src/lib.rs:1522:14 | 1522 | impl UnsafeDropInPlaceGuard { | ^^^^^ not found in this scope error[E0405]: cannot find trait `Sized` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-lite-0.2.9/src/lib.rs:1529:14 | 1529 | impl Drop for UnsafeDropInPlaceGuard { | ^^^^^ not found in this scope 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/lib.rs:16:1 | 16 | extern crate alloc; | ^^^^^^^^^^^^^^^^^^^ can't find crate error[E0463]: can't find crate for `alloc` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-sink-0.3.28/src/lib.rs:19:1 | 19 | extern crate alloc; | ^^^^^^^^^^^^^^^^^^^ can't find crate error[E0463]: can't find crate for `core` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-sink-0.3.28/src/lib.rs:21:5 | 21 | use core::ops::DerefMut; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-sink-0.3.28/src/lib.rs:22:5 | 22 | use core::pin::Pin; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-sink-0.3.28/src/lib.rs:23:5 | 23 | use core::task::{Context, Poll}; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-sink-0.3.28/src/lib.rs:166:9 | 166 | use core::convert::Infallible as Never; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/future.rs:3:5 | 3 | use core::ops::DerefMut; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/future.rs:4:5 | 4 | use core::pin::Pin; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/future.rs:5:5 | 5 | use core::task::{Context, Poll}; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/future.rs:8:9 | 8 | pub use core::future::Future; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/stream.rs:3:5 | 3 | use core::ops::DerefMut; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/stream.rs:4:5 | 4 | use core::pin::Pin; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/stream.rs:5:5 | 5 | use core::task::{Context, Poll}; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/task/__internal/atomic_waker.rs:1:5 | 1 | 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[E0463]: can't find crate for `core` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/task/__internal/atomic_waker.rs:2:5 | 2 | use core::fmt; | ^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/task/__internal/atomic_waker.rs:3:5 | 3 | use core::task::Waker; | ^^^^ 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 `std` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:43:1 | 43 | extern crate std as _; | ^^^^^^^^^^^^^^^^^^^^^^ 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/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/task/__internal/atomic_waker.rs:12:5 | 12 | 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: could not compile `pin-project-lite` due to 9 previous errors error[E0463]: can't find crate for `alloc` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:46:1 | 46 | extern crate alloc; | ^^^^^^^^^^^^^^^^^^^ can't find crate error[E0463]: can't find crate for `core` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/task/mod.rs:10:9 | 10 | pub use core::task::{Context, Poll, RawWaker, RawWakerVTable, Waker}; | ^^^^ 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: could not compile `ryu` due to 38 previous errors error[E0432]: unresolved imports `super::Future`, `self::future::Future`, `atomic::AtomicUsize`, `atomic::Ordering::AcqRel`, `atomic::Ordering::Acquire`, `atomic::Ordering::Release` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/lib.rs:20:37 | 20 | pub use self::future::{FusedFuture, Future, TryFuture}; | ^^^^^^ | ::: /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/future.rs:49:9 | 49 | use super::Future; | ^^^^^^^^^^^^^ | ::: /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/task/__internal/atomic_waker.rs:5:5 | 5 | use atomic::AtomicUsize; | ^^^^^^^^^^^^^^^^^^^ 6 | use atomic::Ordering::{AcqRel, Acquire, Release}; | ^^^^^^ ^^^^^^^ ^^^^^^^ error[E0463]: can't find crate for `core` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:54:5 | 54 | use core::{fmt, mem, 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 attribute `derive` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:256:3 | 256 | #[derive(Clone)] | ^^^^^^ error: cannot find attribute `derive` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:362:3 | 362 | #[derive(Clone, Debug)] | ^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:466:21 | 466 | debug_assert!(raw_utf8 == &*bytes as *const [u8]); | ^^^^^^^^^^^^ error: cannot find macro `write` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/task/__internal/atomic_waker.rs:416:9 | 416 | write!(f, "AtomicWaker") | ^^^^^ error[E0405]: cannot find trait `Iterator` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:262:10 | 262 | impl<'a> Iterator for PercentEncode<'a> { | ^^^^^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:265:27 | 265 | fn next(&mut self) -> Option<&'a str> { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:266:16 | 266 | if let Some((&first_byte, remaining)) = self.bytes.split_first() { | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:286:13 | 286 | None | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:290:36 | 290 | fn size_hint(&self) -> (usize, Option) { | ^^^^^^ not found in this scope error[E0405]: cannot find trait `From` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:309:10 | 309 | impl<'a> From> for Cow<'a, str> { | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:313:13 | 313 | Some(first) => match iter.next() { | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:315:17 | 315 | Some(second) => { | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:367:58 | 367 | fn after_percent_sign(iter: &mut slice::Iter<'_, u8>) -> Option { | ^^^^^^ not found in this scope error[E0405]: cannot find trait `Iterator` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:375:10 | 375 | impl<'a> Iterator for PercentDecode<'a> { | ^^^^^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:378:27 | 378 | fn next(&mut self) -> Option { | ^^^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:388:36 | 388 | fn size_hint(&self) -> (usize, Option) { | ^^^^^^ not found in this scope error[E0405]: cannot find trait `From` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:395:10 | 395 | impl<'a> From> for Cow<'a, [u8]> { | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:398:13 | 398 | Some(vec) => Cow::Owned(vec), | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:407:25 | 407 | fn if_any(&self) -> Option> { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:410:20 | 410 | if let Some(decoded_byte) = after_percent_sign(&mut bytes_iter) { | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:420:9 | 420 | None | ^^^^ not found in this scope error[E0412]: cannot find type `Result` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:427:33 | 427 | pub fn decode_utf8(self) -> Result, str::Utf8Error> { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:430:17 | 430 | Ok(s) => Ok(s.into()), | ^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:431:17 | 431 | Err(e) => Err(e), | ^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:434:17 | 434 | Ok(s) => Ok(s.into()), | ^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:435:17 | 435 | Err(e) => Err(e.utf8_error()), | ^^^ not found in this scope error: cannot find macro `debug_assert_eq` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/task/__internal/atomic_waker.rs:306:29 | 306 | ... debug_assert_eq!(actual, REGISTERING | WAKING); | ^^^^^^^^^^^^^^^ error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:269:17 | 269 | Some(percent_encode_byte(first_byte)) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:278:32 | 278 | return Some(unsafe { str::from_utf8_unchecked(unchanged_slice) }); | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:283:17 | 283 | Some(unsafe { str::from_utf8_unchecked(unchanged_slice) }) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:292:17 | 292 | (0, Some(0)) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:294:17 | 294 | (1, Some(self.bytes.len())) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:304:9 | 304 | Ok(()) | ^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:372:5 | 372 | Some(h as u8 * 0x10 + l as u8) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:390:27 | 390 | ((bytes + 2) / 3, Some(bytes)) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:416:24 | 416 | return Some(decoded); | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:430:26 | 430 | Ok(s) => Ok(s.into()), | ^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:431:27 | 431 | Err(e) => Err(e), | ^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:434:26 | 434 | Ok(s) => Ok(s.into()), | ^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.3.0/src/lib.rs:435:27 | 435 | Err(e) => Err(e.utf8_error()), | ^^^ not found in this scope Some errors have detailed explanations: E0405, E0412, E0425, E0463, E0531. error: could not compile `percent-encoding` due to 43 previous errors error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/task/__internal/atomic_waker.rs:355:17 | 355 | debug_assert!(state == REGISTERING || state == REGISTERING | WAKING); | ^^^^^^^^^^^^ error: cannot find macro `debug_assert` in this scope --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.28/src/task/__internal/atomic_waker.rs:399:17 | 399 | debug_assert!( | ^^^^^^^^^^^^ error[E0463]: can't find crate for `std` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-1.0.40/src/aserror.rs:1:5 | 1 | use std::error::Error; | ^^^ 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[E0432]: unresolved imports `self::core::cmp`, `self::core::iter`, `self::core::mem`, `self::core::num`, `self::core::ptr`, `self::core::slice`, `self::core::str` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.164/src/lib.rs:171:26 | 171 | pub use self::core::{cmp, iter, mem, num, ptr, slice, str}; | ^^^ ^^^^ ^^^ ^^^ ^^^ ^^^^^ ^^^ no `str` in `lib::core` | | | | | | | | | | | | | no `slice` in `lib::core` | | | | | no `ptr` in `lib::core` | | | | no `num` in `lib::core` | | | no `mem` in `lib::core` | | no `iter` in `lib::core` | no `cmp` in `lib::core` error[E0432]: unresolved imports `self::core::f32`, `self::core::f64` --> /Users/lukepighetti/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.164/src/lib.rs:172:26 | 172 | pub use self::core::{f32, f64}; | ^^^ ^^^ no `f64` in `lib::core` | | | no `f32` in `lib::core` ```
FabianLars commented 1 year ago

Looks like you have 2 rust or rustup installations on your system, could that be?

Because you ran rustup update (on nightly?) But are still running cargo 1.69 (latest stable is 1.71) so it's not using the correct rustup/cargo installation.

lukepighetti commented 1 year ago

Homebrew strikes again! Thanks for playing help desk