tokio-codec

Utilities for encoding and decoding frames

3 unstable releases

0.1.1 Sep 27, 2018
0.1.0 Jun 13, 2018
0.0.0 Mar 14, 2017

#16 in Asynchronous

Download history 32246/week @ 2019-01-21 33918/week @ 2019-01-28 34307/week @ 2019-02-04 40080/week @ 2019-02-11 38801/week @ 2019-02-18 43101/week @ 2019-02-25 42718/week @ 2019-03-04 43888/week @ 2019-03-11 42996/week @ 2019-03-18 40491/week @ 2019-03-25 44091/week @ 2019-04-01 47175/week @ 2019-04-08 40567/week @ 2019-04-15 39359/week @ 2019-04-22 37720/week @ 2019-04-29

184,756 downloads per month
Used in 416 crates (107 directly)

MIT license

140KB
2.5K SLoC

tokio-codec

Utilities for encoding and decoding frames.

Documentation

Usage

First, add this to your Cargo.toml:

[dependencies]
tokio-codec = "0.1"

Next, add this to your crate:

extern crate tokio_codec;

You can find extensive documentation and examples about how to use this crate online at https://tokio.rs. The API documentation is also a great place to get started for the nitty-gritty.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.


lib.rs:

Utilities for encoding and decoding frames.

Contains adapters to go from streams of bytes, AsyncRead and AsyncWrite, to framed streams implementing Sink and Stream. Framed streams are also known as transports.

Dependencies

~1MB
~15K SLoC