Extract read::StreamReader to its own crate (or tokio?)
Hi,
while contributing to the shiplift crate, I ran into the problem of converting a Stream<Item = Chunk> into an AsyncReader so I could use the Framed / Decoder stuff from tokio-codec. After banging my head on it for a few days, I found your StreamReader implementation which works great, but I'd like to avoid copying/pasting it...
Given that it's not specific to ipfs, would you consider extracting it to its own crate, or ideally submitting it to the tokio project?
I'm happy to do some of the work if that helps.
Hi,
I'm a bit stretched for time right now, but, yes that would be awesome if you could submit it to the tokio project! I have had other people tell me they found that code useful too, so I'm sure it would be helpful to have it in tokio!