rust-embedded / embedded-hal

A Hardware Abstraction Layer (HAL) for embedded systems
Apache License 2.0
2.01k stars 202 forks source link

Update minimum `embedded-io` version for `embedded-io-async` #617

Closed jamesmunns closed 4 months ago

jamesmunns commented 4 months ago

The 0.6.0 version of embedded-io does not have SliceWriteError in the public API, leading to this error if the 0.6.0 version is selected:

error[E0432]: unresolved import `embedded_io::SliceWriteError`
 --> /Users/james/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embedded-io-async-0.6.1/src/impls/slice_mut.rs:2:5
  |
2 | use embedded_io::SliceWriteError;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SliceWriteError` in the root

For more information about this error, try `rustc --explain E0432`.
error: could not compile `embedded-io-async` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

This means that embedded-io-async requires at least embedded-io 0.6.