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
784 stars 105 forks source link

Build fails for `esp32s2` #101

Closed SergioGasquez closed 2 years ago

SergioGasquez commented 2 years ago

Demo is failing for esp32s2. cargo +esp build --target xtensa-esp32s2-espidf --release results in:

error[E0425]: cannot find function, tuple struct or tuple variant `ToStd` in this scope
    --> src/main.rs:1245:13
     |
1245 |             ToStd(req.into_reader()?).read_to_end(&mut body)?;
     |             ^^^^^ not found in this scope

error[E0599]: no method named `into_reader` found for struct `esp_idf_svc::http::server::EspHttpRequest` in the current scope
    --> src/main.rs:1245:23
     |
1245 |             ToStd(req.into_reader()?).read_to_end(&mut body)?;
     |                       ^^^^^^^^^^^ method not found in `esp_idf_svc::http::server::EspHttpRequest<'_>`

Some errors have detailed explanations: E0425, E0599.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `rust-esp32-std-demo` due to 2 previous errors
darconeous commented 2 years ago

I'm seeing the same thing.

ivmarkov commented 2 years ago

@darconeous Can you try again, by pulling latest from github?

SergioGasquez commented 2 years ago

I just did some tests with updated master branch (including https://github.com/ivmarkov/rust-esp32-std-demo/commit/b0dc9fe890d2b98f53e183b412d8cb784fbc59c1) and the issue still persists

ivmarkov commented 2 years ago

Now fixed for real!: https://github.com/ivmarkov/rust-esp32-std-demo/issues/101

SergioGasquez commented 2 years ago

I can confirm that it's now working! Thanks @ivmarkov