tokio-bincode

Build Status

Bincode based tokio-codec adapter.

Usage

First, add this to your Cargo.toml:

toml [dependencies] tokio-bincode = "0.1"

Then you can use it like so:

``` rust

[derive(Serialize, Deserialize)]

struct MyProtocol;

// Create the codec based on your custom protocol let codec = BinCodec::::new();

// Frame the transport with the codec to produce a stream/sink let (sink, stream) = Framed::new(transport, codec).split(); ```

License

This project is licensed under the MIT license.

Contribution

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