async-bincode 0.5.0-alpha.5

Asynchronous access to a bincode-encoded item stream.
docs.rs failed to build async-bincode-0.5.0-alpha.5
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: async-bincode-0.7.2

async-bincode

Crates.io Documentation Build Status

Asynchronous access to a bincode-encoded item stream.

This crate enables you to asynchronously read from a bincode-encoded stream, or write bincoded-encoded values. bincode does not support this natively, as it cannot easily resume from stream errors while encoding or decoding.

async-bincode works around that on the receive side by buffering received bytes until a full element's worth of data has been received, and only then calling into bincode. To make this work, it relies on the sender to prefix each encoded element with its encoded size. See [serialize_into] for a convenience method that provides this.

On the write side, async-bincode buffers the serialized values, and asynchronously sends the resulting bytestream.