/monoio-codec

Primary LanguageRustApache License 2.0Apache-2.0

Monoio-codec

Crates.io MIT/Apache-2 licensed

This crate provides 2 utils:

  1. Framed, FramedRead and FramedWrite: Like the same things in tokio-util, but with monoio pure async AsyncReadRent, AsyncWriteRent, Sink and Stream.
  2. AsyncEncoder, AsyncDecoder: Trait for encode and decode in async streaming way.

If you already have an codec(in tokio trait), you can use our Framed to make it works in monoio. If you haven't, maybe you can try to write encoder and decoder in pure async way.