▲ 9 r/rust
Are people using embedded-io and embedded-io-async?
Hi all,
Ive worked with embedded rust for the last year and a bit and I love it. The Embeded-Hal is so good and the portability of drivers is amazing.
Usually when I make an I2C driver I use the embedded-Hal traits and build it to them. This allows me to reuse the same driver across multiple microcontrollers, single board computers and my Mac.
However when I try to do this with a serial based device such as UART. There is no trait in the embedded-Hal for that. There is some in embedded-io but then popular crates such as serialport doesn’t support that trait and thus my driver doesn’t bind to that interface.
Am I missing something here? Any help would be great!
u/ZzSkat3rzZ — 8 hours ago