#cbor #tokio #framing #tokio-codec #networking

tokio-serde-cbor

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

10 releases (6 breaking)

0.7.0 Sep 17, 2022
0.6.0 Jan 1, 2021
0.5.0 Nov 2, 2020
0.4.0 Jan 13, 2020
0.2.1 May 15, 2017

#692 in Asynchronous

Download history 520/week @ 2023-12-11 191/week @ 2024-01-01 132/week @ 2024-01-08 71/week @ 2024-01-15 224/week @ 2024-01-22 217/week @ 2024-01-29 280/week @ 2024-02-05 600/week @ 2024-02-12 456/week @ 2024-02-19 375/week @ 2024-02-26 243/week @ 2024-03-04 226/week @ 2024-03-11 212/week @ 2024-03-18 134/week @ 2024-03-25

816 downloads per month
Used in 2 crates

Apache-2.0/MIT

18KB
282 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

~3–4.5MB
~76K SLoC