tuffy / bitstream-io

Library for reading/writing un-aligned values from/to streams in big-endian and little-endian formats
Apache License 2.0
52 stars 20 forks source link

Support for AsyncRead/AsyncWrite #10

Open k3d3 opened 3 years ago

k3d3 commented 3 years ago

Hello,

I've made a fork a while back of bitstream-io that supports AsyncRead and AsyncWrite. If you're interested in seeing the code, it's available here: https://github.com/greedia/bitstream-io

I wanted to contribute it back, however there's a lot of things that have been incompatibly changed, and I'm not sure of the best way to support both AsyncRead/AsyncWrite and Read/Write in the same codebase.

Nonetheless, I wanted to bring this repo to your attention, if this is something that's interesting to you.

danieleades commented 2 years ago

i'd really appreciate an asynchronous version of this library

ramiroaisen commented 1 year ago

I just created a version of this library compatible with tokio AsyncRead and AsyncWrite, is still a work in progress but all tests are passing, including the doc tests. Its in crates.io as tokio-bitstream-io