You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build embassy-hello-world for ESP32S3 and keep getting the following error. If I add 'use embassy_executor::raw::Executor;' I still get the same error and 'use embassy_executor::raw::Executor;' is indicated as not being used.
error[E0433]: failed to resolve: could not find `executor` in `embassy`
--> src/main.rs:24:1
|
24 | #[main]
| ^^^^^^^ could not find `executor` in `embassy`
|
= note: this error originates in the attribute macro `main` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this struct
|
5 + use embassy_executor::raw::Executor;
|
warning: unused import: `embassy_executor::raw::Executor`
--> src/main.rs:5:5
|
5 | use embassy_executor::raw::Executor;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `self`
--> src/main.rs:10:15
|
10 | embassy::{self},
| ^^^^
warning: unused variable: `clocks`
--> src/main.rs:29:9
|
29 | let clocks = ClockControl::boot_defaults(system.clock_control).freeze();
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_clocks`
|
= note: `#[warn(unused_variables)]` on by default
error[E0282]: type annotations needed
--> src/main.rs:24:1
|
24 | #[main]
| ^^^^^^^ cannot infer type
|
= note: this error originates in the attribute macro `main` (in Nightly builds, run with -Z macro-backtrace for more info)
This is my Cargo.toml
[package]
name = "hello-world"
version = "0.1.0"
authors = ["enelson1001 <ednelson5080@gmail>"]
edition = "2021"
resolver = "2"
rust-version = "1.71"
[dependencies]
esp32s3-hal = { version = "0.14.0", features = ["async", "embassy", "embassy-time-timg0"] }
esp-backtrace = { version = "0.9.0", features = [
"esp32s3",
"panic-handler",
"exception-handler",
"print-uart",
] }
esp-println = { version = "0.8.0", features = ["esp32s3"] }
# Async dependencies
#embedded-hal-async = { version = "=1.0.0-rc.2" }
#embassy-sync = { version = "0.5.0",optional = true }
#embassy-futures = { version = "0.1.0", optional = true }
embassy-executor = { version = "0.4.0", package = "embassy-executor", features = ["nightly", "integrated-timers", "executor-thread"] }
embassy-time = { version = "0.2.0" }
I am trying to build embassy-hello-world for ESP32S3 and keep getting the following error. If I add 'use embassy_executor::raw::Executor;' I still get the same error and 'use embassy_executor::raw::Executor;' is indicated as not being used.
This is my Cargo.toml
This is my config.toml
This is my main.rs
This is my settings.json under .vscode directory
This is how I build the project.
Are the examples out of date or am I doing something wrong?
The text was updated successfully, but these errors were encountered: