<oneDragon[m]>
I was numb, and after looking at the workload of the network card driver, I began to regret it😇
<haobogu[m]>
Hello everyone, I'm trying to write a toy eeprom driver layer using Rust. I found there are both async/blocking version of `embedded-storage`, aka `embedded-storage` and `embedded-storage-async`, is there any way to support both? I tried to make my eeporm support blocking embedded-storage like `struct Eeprom<F: NorFlash>`, but have no idea how to support both `embedded-storage::NorFlash` and `embedded-storage-async::NorFlash`.
Guest7282 has joined #rust-embedded
tafa has quit [Ping timeout: 255 seconds]
tafa has joined #rust-embedded
ryan-summers[m] has joined #rust-embedded
<ryan-summers[m]>
<haobogu[m]> "Hello everyone, I'm trying to..." <- I've read a few blogs related to this outside of the embedded sphere, and I've not yet seen a good approach to supporting both async and non-async code without lots of duplication unfortunately. However, one blog post I read did mention https://crates.io/crates/maybe-async, which might be useful, but there are some soundness issues with this approach that revolve around cargo