-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
I am trying to integrate some libraries (https://github.com/esp-rs/std-training/tree/main/common/lib) like rgb-led (and may be wifi later for example) in my project (https://github.com/SonelioDev/rustdio/tree/rgb-led).
When doing cargo build, I have the following error:
Compiling pin-utils v0.1.0
error[E0463]: can't find crate for `std`
|
= note: the `xtensa-esp32s3-none-elf` target may not support the standard library
= note: `std` is required by `embedded_io` because it does not declare `#![no_std]`
= help: consider building the standard library from source with `cargo build -Zbuild-std`
error: cannot find macro `panic` in this scope
--> /Users/adrien/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/embedded-io-0.6.1/src/lib.rs:397:26
|
397 | Ok(0) => panic!("write() returned Ok(0)"),
| ^^^^^
|
help: consider importing one of these macros
|
6 + use crate::defmt::panic;
|
6 + use core::panic;
|
6 + use defmt_03::panic;
|
error: cannot find macro `write` in this scope
--> /Users/adrien/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/embedded-io-0.6.1/src/lib.rs:289:9
|
289 | write!(f, "{self:?}")
| ^^^^^
|
help: consider importing one of these macros
|
6 + use crate::defmt::write;
|
6 + use core::write;
|
6 + use defmt_03::write;
|
error: cannot find attribute `derive` in this scope
--> /Users/adrien/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/embedded-io-0.6.1/src/lib.rs:272:3
|
272 | #[derive(Debug, Copy, Clone, Eq, PartialEq)]
| ^^^^^^
I've tried to add -Zbuild-std to my cargo buildcommand, but doesn't seems to make a difference.
What is the difference between my target = "xtensa-esp32s3-none-elf" and "xtensa-esp32s3-espidf" (both target in my .cargo/config.toml are making the same errors.
I suspect something wrong in my project and lib Cargo.toml, but cannot figure it out.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Todo