ivmarkov / rust-esp32-std-demo

Rust on ESP32 STD demo app. A demo STD binary crate for the ESP32[XX] and ESP-IDF, which connects to WiFi, Ethernet, drives a small HTTP server and draws on a LED screen.
Apache License 2.0
785 stars 105 forks source link

the `riscv32imc-esp-espidf` target may not be installed #159

Closed freew01f closed 6 months ago

freew01f commented 6 months ago

I am new in this field, My PC is Mac m2 rust env info is ....

rustup -V
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.78.0-nightly (bb594538f 2024-02-20)`

idf.py --version
ESP-IDF v5.2-37-g93ea06fe3e-dirty

rustup toolchain list
nightly-aarch64-apple-darwin (default)
esp

cargo -V
cargo 1.75.0

rustup component list (ignore not install)
cargo-aarch64-apple-darwin (installed)
rust-src (installed)
rust-std-aarch64-apple-darwin (installed)
rust-std-riscv32imac-unknown-none-elf (installed)
rust-std-riscv32imafc-unknown-none-elf (installed)
rust-std-riscv32imc-unknown-none-elf (installed)
rustc-aarch64-apple-darwin (installed)

rustup target list  (ignore not install)
aarch64-apple-darwin (installed)
riscv32imac-unknown-none-elf (installed)
riscv32imafc-unknown-none-elf (installed)
riscv32imc-unknown-none-elf (installed)

when I build this project cargo build I got the the err

Compiling peeking_take_while v0.1.2
   Compiling fastrand v2.0.1
   Compiling zero v0.1.3
   Compiling normpath v1.2.0
   Compiling pin-project-lite v0.2.13
   Compiling lazycell v1.3.0
error[E0463]: can't find crate for `core`
  |
  = note: the `riscv32imc-esp-espidf` target may not be installed
  = help: consider downloading the target with `rustup target add riscv32imc-esp-espidf`

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

error[E0463]: can't find crate for `core`
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1622:9
     |
1622 |     use core::mem::ManuallyDrop;
     |         ^^^^ can't find crate
     |
     = note: the `riscv32imc-esp-espidf` target may not be installed
     = help: consider downloading the target with `rustup target add riscv32imc-esp-espidf`

error[E0463]: can't find crate for `core`
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1624:13
     |
1624 |     pub use core::{
     |             ^^^^ can't find crate
     |
     = note: the `riscv32imc-esp-espidf` target may not be installed
     = help: consider downloading the target with `rustup target add riscv32imc-esp-espidf`

error[E0405]: cannot find trait `Sized` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1633:32
     |
1633 |     pub struct AlwaysUnpin<T: ?Sized>(PhantomData<T>);
     |                                ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1635:14
     |
1635 |     impl<T: ?Sized> Unpin for AlwaysUnpin<T> {}
     |              ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1639:43
     |
1639 |     pub struct UnsafeDropInPlaceGuard<T: ?Sized>(*mut T);
     |                                           ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1641:14
     |
1641 |     impl<T: ?Sized> UnsafeDropInPlaceGuard<T> {
     |              ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1648:14
     |
1648 |     impl<T: ?Sized> Drop for UnsafeDropInPlaceGuard<T> {
     |              ^^^^^ not found in this scope

libunwind: malformed __unwind_info at 0x18A5AFCA8 bad second level page
libunwind: malformed __unwind_info at 0x18A5AFCA8 bad second level page
Some errors have detailed explanations: E0405, E0463.
For more information about an error, try `rustc --explain E0405`.
error: could not compile `pin-project-lite` (lib) due to 9 previous errors
warning: build failed, waiting for other jobs to finish...

when i install the esp32 target I got

rustup target add riscv32imc-esp-espidf
error: toolchain 'nightly-aarch64-apple-darwin' does not contain component 'rust-std' for target 'riscv32imc-esp-espidf'
note: not all platforms have the standard library pre-compiled: https://doc.rust-lang.org/nightly/rustc/platform-support.html
help: consider using `cargo build -Z build-std` instead

cargo build -Z build-std
error: the `-Z` flag is only accepted on the nightly channel of Cargo, but this is the `stable` channel
See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels.

how can I fix this problem, I search alot in google but I can not fix it thanks

ivmarkov commented 6 months ago

You need to use the esp Rust toolchain, by first installing it with the espup utility, and then switch it as the default with rustup default esp.

OR

you need to use the nightly Rust toolchain with rustup default nightly.

OR

you can - in the meantime - also use the stable toolchain, but you need to do a few tricks, so let's leave that for later.

Please follow this.

freew01f commented 6 months ago

the same

rustup show
Default host: aarch64-apple-darwin
rustup home:  /Users/freewolf/.rustup

installed toolchains
--------------------

stable-aarch64-apple-darwin
nightly-aarch64-apple-darwin
esp (default)

active toolchain
----------------

esp (default)
(rustc does not exist)

cargo clean                            
     Removed 2187 files, 746.1MiB total
cargo build                            
   Compiling proc-macro2 v1.0.78
   Compiling unicode-ident v1.0.12
   Compiling libc v0.2.153
   Compiling serde v1.0.197
   Compiling memchr v2.7.1
   Compiling cfg-if v1.0.0
   Compiling crossbeam-utils v0.8.19
   Compiling regex-syntax v0.8.2
   Compiling cc v1.0.86
   Compiling syn v1.0.109
   Compiling glob v0.3.1
   Compiling aho-corasick v1.1.2
   Compiling bitflags v1.3.2
   Compiling rustix v0.38.31
   Compiling autocfg v1.1.0
   Compiling clang-sys v1.7.0
   Compiling quote v1.0.35
   Compiling syn v2.0.50
   Compiling rustversion v1.0.14
   Compiling regex-automata v0.4.5
   Compiling log v0.4.20
   Compiling bitflags v2.4.2
   Compiling semver v1.0.22
   Compiling errno v0.3.8
   Compiling crossbeam-epoch v0.9.18
   Compiling bstr v1.9.0
   Compiling serde_json v1.0.114
   Compiling minimal-lexical v0.2.1
   Compiling same-file v1.0.6
   Compiling thiserror v1.0.57
   Compiling nom v7.1.3
   Compiling walkdir v2.4.0
   Compiling crossbeam-deque v0.8.5
   Compiling nix v0.26.4
   Compiling libloading v0.8.1
   Compiling globset v0.4.14
   Compiling cvt v0.1.2
   Compiling home v0.5.9
   Compiling lazy_static v1.4.0
   Compiling itoa v1.0.10
   Compiling bindgen v0.63.0
   Compiling ryu v1.0.17
   Compiling anyhow v1.0.80
   Compiling either v1.10.0
   Compiling heck v0.4.1
   Compiling which v4.4.2
   Compiling cexpr v0.6.0
   Compiling fs_at v0.1.10
   Compiling ignore v0.4.22
   Compiling regex v1.10.3
   Compiling shlex v1.3.0
   Compiling rustc-hash v1.1.0
   Compiling zero v0.1.3
   Compiling fastrand v2.0.1
   Compiling peeking_take_while v0.1.2
   Compiling pin-project-lite v0.2.13
error[E0463]: can't find crate for `core`
  |
  = note: the `riscv32imc-esp-espidf` target may not be installed
  = help: consider downloading the target with `rustup target add riscv32imc-esp-espidf`

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

error[E0463]: can't find crate for `core`
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1622:9
     |
1622 |     use core::mem::ManuallyDrop;
     |         ^^^^ can't find crate
     |
     = note: the `riscv32imc-esp-espidf` target may not be installed
     = help: consider downloading the target with `rustup target add riscv32imc-esp-espidf`

error[E0463]: can't find crate for `core`
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1624:13
     |
1624 |     pub use core::{
     |             ^^^^ can't find crate
     |
     = note: the `riscv32imc-esp-espidf` target may not be installed
     = help: consider downloading the target with `rustup target add riscv32imc-esp-espidf`

error[E0405]: cannot find trait `Sized` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1633:32
     |
1633 |     pub struct AlwaysUnpin<T: ?Sized>(PhantomData<T>);
     |                                ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1635:14
     |
1635 |     impl<T: ?Sized> Unpin for AlwaysUnpin<T> {}
     |              ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1639:43
     |
1639 |     pub struct UnsafeDropInPlaceGuard<T: ?Sized>(*mut T);
     |                                           ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1641:14
     |
1641 |     impl<T: ?Sized> UnsafeDropInPlaceGuard<T> {
     |              ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13/src/lib.rs:1648:14
     |
1648 |     impl<T: ?Sized> Drop for UnsafeDropInPlaceGuard<T> {
     |              ^^^^^ not found in this scope

   Compiling byteorder v1.5.0
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
Some errors have detailed explanations: E0405, E0463.
For more information about an error, try `rustc --explain E0405`.
error: could not compile `pin-project-lite` (lib) due to 9 previous errors
warning: build failed, waiting for other jobs to finish...
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
error[E0463]: can't find crate for `core`
  --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:76:5
   |
76 | use core::{
   |     ^^^^ can't find crate
   |
   = note: the `riscv32imc-esp-espidf` target may not be installed
   = help: consider downloading the target with `rustup target add riscv32imc-esp-espidf`

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1209:27
     |
1209 |             const _: () = assert!(align_of::<u32>() <= align_of::<f32>());
     |                           ^^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1271:27
     |
1271 |             const _: () = assert!(align_of::<u64>() <= align_of::<f64>());
     |                           ^^^^^^

error: cannot find attribute `derive` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1812:3
     |
1812 | #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
     |   ^^^^^^

error: cannot find macro `panic` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1817:9
     |
1817 |         panic!("BigEndian default")
     |         ^^^^^

error: cannot find attribute `derive` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1842:3
     |
1842 | #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
     |   ^^^^^^

error: cannot find macro `panic` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1847:9
     |
1847 |         panic!("LittleEndian default")
     |         ^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1962:9
     |
1962 |         assert!(1 <= nbytes && nbytes <= out.len() && nbytes <= buf.len());
     |         ^^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1971:9
     |
1971 |         assert!(1 <= nbytes && nbytes <= out.len() && nbytes <= buf.len());
     |         ^^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1999:9
     |
1999 |         assert!(pack_size(n) <= nbytes && nbytes <= 8);
     |         ^^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2000:9
     |
2000 |         assert!(nbytes <= buf.len());
     |         ^^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2013:9
     |
2013 |         assert!(pack_size128(n) <= nbytes && nbytes <= 16);
     |         ^^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2014:9
     |
2014 |         assert!(nbytes <= buf.len());
     |         ^^^^^^

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1914:9
     |
1914 |         assert_eq!(src.len(), dst.len() * SIZE);
     |         ^^^^^^^^^
...
2027 |         read_slice!(src, dst, u16, from_be_bytes);
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `read_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1914:9
     |
1914 |         assert_eq!(src.len(), dst.len() * SIZE);
     |         ^^^^^^^^^
...
2032 |         read_slice!(src, dst, u32, from_be_bytes);
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `read_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1914:9
     |
1914 |         assert_eq!(src.len(), dst.len() * SIZE);
     |         ^^^^^^^^^
...
2037 |         read_slice!(src, dst, u64, from_be_bytes);
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `read_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1914:9
     |
1914 |         assert_eq!(src.len(), dst.len() * SIZE);
     |         ^^^^^^^^^
...
2042 |         read_slice!(src, dst, u128, from_be_bytes);
     |         ------------------------------------------ in this macro invocation
     |
     = note: this error originates in the macro `read_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1931:9
     |
1931 |         assert_eq!(src.len() * SIZE, dst.len());
     |         ^^^^^^^^^
...
2047 |         write_slice!(src, dst, u16, to_be_bytes);
     |         ---------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `write_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1931:9
     |
1931 |         assert_eq!(src.len() * SIZE, dst.len());
     |         ^^^^^^^^^
...
2052 |         write_slice!(src, dst, u32, to_be_bytes);
     |         ---------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `write_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1931:9
     |
1931 |         assert_eq!(src.len() * SIZE, dst.len());
     |         ^^^^^^^^^
...
2057 |         write_slice!(src, dst, u64, to_be_bytes);
     |         ---------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `write_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1931:9
     |
1931 |         assert_eq!(src.len() * SIZE, dst.len());
     |         ^^^^^^^^^
...
2062 |         write_slice!(src, dst, u128, to_be_bytes);
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `write_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2067:12
     |
2067 |         if cfg!(target_endian = "little") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2076:12
     |
2076 |         if cfg!(target_endian = "little") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2085:12
     |
2085 |         if cfg!(target_endian = "little") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2094:12
     |
2094 |         if cfg!(target_endian = "little") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2103:12
     |
2103 |         if cfg!(target_endian = "little") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2115:12
     |
2115 |         if cfg!(target_endian = "little") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2150:9
     |
2150 |         assert!(1 <= nbytes && nbytes <= out.len() && nbytes <= buf.len());
     |         ^^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2158:9
     |
2158 |         assert!(1 <= nbytes && nbytes <= out.len() && nbytes <= buf.len());
     |         ^^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2185:9
     |
2185 |         assert!(pack_size(n as u64) <= nbytes && nbytes <= 8);
     |         ^^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2186:9
     |
2186 |         assert!(nbytes <= buf.len());
     |         ^^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2195:9
     |
2195 |         assert!(pack_size128(n as u128) <= nbytes && nbytes <= 16);
     |         ^^^^^^

error: cannot find macro `assert` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2196:9
     |
2196 |         assert!(nbytes <= buf.len());
     |         ^^^^^^

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1914:9
     |
1914 |         assert_eq!(src.len(), dst.len() * SIZE);
     |         ^^^^^^^^^
...
2205 |         read_slice!(src, dst, u16, from_le_bytes);
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `read_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1914:9
     |
1914 |         assert_eq!(src.len(), dst.len() * SIZE);
     |         ^^^^^^^^^
...
2210 |         read_slice!(src, dst, u32, from_le_bytes);
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `read_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1914:9
     |
1914 |         assert_eq!(src.len(), dst.len() * SIZE);
     |         ^^^^^^^^^
...
2215 |         read_slice!(src, dst, u64, from_le_bytes);
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `read_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1914:9
     |
1914 |         assert_eq!(src.len(), dst.len() * SIZE);
     |         ^^^^^^^^^
...
2220 |         read_slice!(src, dst, u128, from_le_bytes);
     |         ------------------------------------------ in this macro invocation
     |
     = note: this error originates in the macro `read_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1931:9
     |
1931 |         assert_eq!(src.len() * SIZE, dst.len());
     |         ^^^^^^^^^
...
2225 |         write_slice!(src, dst, u16, to_le_bytes);
     |         ---------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `write_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1931:9
     |
1931 |         assert_eq!(src.len() * SIZE, dst.len());
     |         ^^^^^^^^^
...
2230 |         write_slice!(src, dst, u32, to_le_bytes);
     |         ---------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `write_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1931:9
     |
1931 |         assert_eq!(src.len() * SIZE, dst.len());
     |         ^^^^^^^^^
...
2235 |         write_slice!(src, dst, u64, to_le_bytes);
     |         ---------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `write_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1931:9
     |
1931 |         assert_eq!(src.len() * SIZE, dst.len());
     |         ^^^^^^^^^
...
2240 |         write_slice!(src, dst, u128, to_le_bytes);
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `write_slice` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2245:12
     |
2245 |         if cfg!(target_endian = "big") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2254:12
     |
2254 |         if cfg!(target_endian = "big") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2263:12
     |
2263 |         if cfg!(target_endian = "big") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2272:12
     |
2272 |         if cfg!(target_endian = "big") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2281:12
     |
2281 |         if cfg!(target_endian = "big") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error: cannot find macro `cfg` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:2293:12
     |
2293 |         if cfg!(target_endian = "big") {
     |            ^^^
     |
     = note: `cfg` is in scope, but it is an attribute: `#[cfg]`

error[E0463]: can't find crate for `core`
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1910:29
     |
1910 |         const SIZE: usize = core::mem::size_of::<$ty>();
     |                             ^^^^ can't find crate
     |
     = note: the `riscv32imc-esp-espidf` target may not be installed
     = help: consider downloading the target with `rustup target add riscv32imc-esp-espidf`

error[E0463]: can't find crate for `core`
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1927:29
     |
1927 |         const SIZE: usize = core::mem::size_of::<$ty>();
     |                             ^^^^ can't find crate
     |
     = note: the `riscv32imc-esp-espidf` target may not be installed
     = help: consider downloading the target with `rustup target add riscv32imc-esp-espidf`

error[E0405]: cannot find trait `Clone` in this scope
   --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:213:5
    |
213 |     Clone
    |     ^^^^^ not found in this scope

error[E0405]: cannot find trait `Copy` in this scope
   --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:214:7
    |
214 |     + Copy
    |       ^^^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
   --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:216:7
    |
216 |     + Default
    |       ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Eq` in this scope
   --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:217:7
    |
217 |     + Eq
    |       ^^ not found in this scope

error[E0405]: cannot find trait `Ord` in this scope
   --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:219:7
    |
219 |     + Ord
    |       ^^^ not found in this scope

error[E0405]: cannot find trait `PartialEq` in this scope
   --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:220:7
    |
220 |     + PartialEq
    |       ^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `PartialOrd` in this scope
   --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:221:7
    |
221 |     + PartialOrd
    |       ^^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1815:6
     |
1815 | impl Default for BigEndian {
     |      ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
    --> /Users/freewolf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.5.0/src/lib.rs:1845:6
     |
1845 | impl Default for LittleEndian {
     |      ^^^^^^^ not found in this scope

libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
libunwind: malformed __unwind_info at 0x188E83CA8 bad second level page
error: could not compile `byteorder` (lib) due to 60 previous errors

I already switch esp