rainj-me / monoio-codec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:Apache License 2.0


Languages

Language:Rust 100.0%