Skip to content

Easily serialize/deserialize Tokio streams using bincode format

Notifications You must be signed in to change notification settings

luben/tokio-serde-bincode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tokio / Serde bindings for bincode

Build Status crates.io Docs

Utilities needed to easily implement a Tokio Bincode transport using serde for serialization and deserialization of frame values. Based on tokio-serde.

Async/Await

Tokio-0.2 and later versions have migrated to the std::future trait. This crate is based on tokio-0.1 and the out of std futures crate. tokio-serde v0.6 already supports Bincode and other serialization formats behind Cargo features. So in order not to duplicate efforts, any new use and development should be based on tokio-serde. This crate is going to receive only fixes for security issues, if any is found.

Usage

To use tokio-serde-bincode, first add this to your Cargo.toml:

[dependencies]
tokio-serde-bincode = "0.2"

Next, add this to your crate:

extern crate tokio_serde_bincode;

use tokio_serde_bincode::{ReadBincode, WriteBincode};

License

tokio-serde-bincode is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details.

About

Easily serialize/deserialize Tokio streams using bincode format

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages