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.
[x] Replace all instance of anyhow::message with anyhow::anyhow!
[x] Fix the esp32s3_usb_otg build
$ cargo build --features esp32s3_usb_otg
...
error[E0425]: cannot find function `message` in crate `anyhow`
--> src\main.rs:1065:30
|
1065 | .map_err(|e| anyhow::message("Display error: {:?}", e))?;
| ^^^^^^^ not found in `anyhow`
error[E0425]: cannot find function `message` in crate `anyhow`
error[E0277]: the trait bound `st7789::Error<EspError>: std::error::Error` is not satisfied
--> src\main.rs:1070:30
|
1070 | Ok(led_draw(&mut display)?)
| ^ the trait `std::error::Error` is not implemented for `st7789::Error<EspError>`
|
= note: required because of the requirements on the impl of `From<st7789::Error<EspError>>` for `anyhow::Error`
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, st7789::Error<EspError>>>` for `std::result::Result<(), anyhow::Error>`
anyhow::message
withanyhow::anyhow!