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 failure with latest deps #94

Closed tcbennun closed 2 years ago

tcbennun commented 2 years ago

After cargo update and cargo clean. Target is the default xtensa-esp32-espidf. Command is just cargo build, ESP-IDF exported beforehand (release/v4.4).

error[E0432]: unresolved import `embedded_svc::utils::atomic_swap`
   --> /home/tcb/.cargo/registry/src/github.com-1ecc6299db9ec823/esp-idf-svc-0.41.3/src/timer.rs:240:30
    |
240 |     use embedded_svc::utils::atomic_swap::AtomicOption;
    |                              ^^^^^^^^^^^ could not find `atomic_swap` in `utils`

error[E0107]: this struct takes 1 generic argument but 2 generic arguments were supplied
   --> /home/tcb/.cargo/registry/src/github.com-1ecc6299db9ec823/esp-idf-svc-0.41.3/src/timer.rs:243:53
    |
243 |         type AsyncWrapper<S> = AsyncTimerService<S, AtomicSignal<AtomicOption, ()>>;
    |                                                     ^^^^^^^^^^^^               -- help: remove this generic argument
    |                                                     |
    |                                                     expected 1 generic argument
    |
note: struct defined here, with 1 generic parameter: `T`
   --> /home/tcb/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-svc-0.21.3/src/utils/asyncs/signal.rs:129:16
    |
129 |     pub struct AtomicSignal<T> {
    |                ^^^^^^^^^^^^ -

Some errors have detailed explanations: E0107, E0432.
For more information about an error, try `rustc --explain E0107`.
error: could not compile `esp-idf-svc` due to 2 previous errors

rustc: 1.61.0-nightly (7476f4919 2022-05-17) esp-idf: release/v4.4 (ae0e3e2)

Is it me (again!)?

tcbennun commented 2 years ago

Fix on esp-idf-svc master has worked, thank you @ivmarkov

ivmarkov commented 2 years ago

I've now released a new increment of esp-idf-svc as well.