#cbor #tokio #framing

tokio-serde-cbor

Integration of serde_cbor into tokio-io, to allow sending CBOR encoded frames across network (and possibly through other transports)

7 unstable releases

✓ Uses Rust 2018 edition

0.4.0 Jan 13, 2020
0.3.2 Jul 21, 2019
0.3.1 Dec 16, 2018
0.3.0 Sep 29, 2018
0.1.0 Apr 17, 2017

#112 in Asynchronous

Download history 12/week @ 2019-10-14 9/week @ 2019-10-21 52/week @ 2019-10-28 7/week @ 2019-11-04 10/week @ 2019-11-11 25/week @ 2019-11-18 10/week @ 2019-11-25 24/week @ 2019-12-02 39/week @ 2019-12-09 6/week @ 2019-12-16 9/week @ 2019-12-23 2/week @ 2019-12-30 5/week @ 2020-01-06 107/week @ 2020-01-13 35/week @ 2020-01-20

69 downloads per month
Used in ws_stream_wasm

Apache-2.0/MIT

17KB
300 lines

Tokio-serde-cbor

Travis Build Status AppVeyor Build status

This rust crate integrates the serde-cbor into a codec (Decoder and Encoder) of tokio-io. This allows turning an async read/write into a stream and sink of objects.

The API documentation can be found here.

Status

The API is not formally stabilized and may change. But the crate itself is small and there's probably not much space for such changes.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2.5MB
~42K SLoC