Skip to content

LucioFranco/tokio-bincode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tokio-bincode

Build Status Crates.io Crates.io Docs.rs

Bincode based tokio-codec adapter.

Usage

First, add this to your Cargo.toml:

[dependencies]
tokio-bincode = "0.1"

Then you can use it like so:

#[derive(Serialize, Deserialize)]
struct MyProtocol;

// Create the codec based on your custom protocol
let codec = BinCodec::<MyProtocol>::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.

About

Bincode based `tokio-codec` adapter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages