#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

#626 in Asynchronous

Download history 172/week @ 2024-03-16 160/week @ 2024-03-23 247/week @ 2024-03-30 50/week @ 2024-04-06 85/week @ 2024-04-13 250/week @ 2024-04-20 178/week @ 2024-04-27 17/week @ 2024-05-04 294/week @ 2024-05-11 4/week @ 2024-05-18 360/week @ 2024-05-25 55/week @ 2024-06-01 201/week @ 2024-06-08 325/week @ 2024-06-15 402/week @ 2024-06-22 120/week @ 2024-06-29

1,050 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
~71K SLoC