https://github.com/luben/tokio-serde-bincode
Easily serialize/deserialize Tokio streams using bincode format
https://github.com/luben/tokio-serde-bincode
Last synced: 4 months ago
JSON representation
Easily serialize/deserialize Tokio streams using bincode format
- Host: GitHub
- URL: https://github.com/luben/tokio-serde-bincode
- Owner: luben
- Created: 2017-03-23T14:41:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-12-12T23:09:54.000Z (over 6 years ago)
- Last Synced: 2026-03-18T09:44:14.276Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 765 KB
- Stars: 14
- Watchers: 0
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
Awesome Lists containing this project
README
# Tokio / Serde bindings for bincode
[](https://travis-ci.org/luben/tokio-serde-bincode)
[](https://crates.io/crates/tokio-serde-bincode)
[](https://docs.rs/tokio-serde-bincode)
Utilities needed to easily implement a Tokio [Bincode] transport using [serde]
for serialization and deserialization of frame values. Based on [tokio-serde].
[bincode]: https://github.com/TyOverby/bincode
[serde]: https://serde.rs
[tokio-serde]: https://github.com/carllerche/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`:
```toml
[dependencies]
tokio-serde-bincode = "0.2"
```
Next, add this to your crate:
```rust
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.