esp-rs / embedded-svc

Rust APIs and abstractions for various embedded services (WiFi, Network, Httpd, Logging, etc.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to compile with `experimental` due to MQTT bounds

AlyoshaVasilieva opened this issue · comments

   Compiling embedded-svc v0.16.1
error: missing required bound on `Message`
  --> C:\Users\L\.cargo\registry\src\github.com-1ecc6299db9ec823\embedded-svc-0.16.1\src\mqtt\client.rs:93:5
   |
93 |     type Message<'a>: Message;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^-
   |                              |
   |                              help: add the required where clause: `where Self: 'a`
   |
   = note: this bound is currently required to ensure that impls have maximum flexibility
   = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information

error: could not compile `embedded-svc` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Running current nightly, 2022-01-10.

(I'm using the experimental feature to get access to the HTTP client.)

Should be OK now. Please update your embedded-svc and esp-idf-svc dependencies by issuing cargo update in the root of your binary crate and then re-try the build.

If it does work, please close this issue, otherwise let me know.

Fixed, thanks!