#stream #serde #data-stream #deserialize #tokio #messagepack #structs

no-std serde_stream

Adds serde serialization and deserialization functionality to streams

3 releases (stable)

1.0.1 Jul 16, 2023
0.1.0 Jul 16, 2023

#2769 in Parser implementations

Download history 22/week @ 2024-01-05 6/week @ 2024-01-12 16/week @ 2024-01-19 15/week @ 2024-01-26 26/week @ 2024-02-02 118/week @ 2024-02-09 78/week @ 2024-02-16 73/week @ 2024-02-23 68/week @ 2024-03-01 216/week @ 2024-03-08 85/week @ 2024-03-15 88/week @ 2024-03-22 74/week @ 2024-03-29 45/week @ 2024-04-05 53/week @ 2024-04-12 95/week @ 2024-04-19

278 downloads per month

GPL-3.0-or-later

15KB
97 lines

Send objects through streams

This library adds SerdeRead and SerdeWrite, traits that allow you to quickly send serializable enums and structs over streams, both for std and tokio variants.

It uses MessagePack (https://crates.io/crates/rmp-serde) for both serialization and deserialization. Before sending the serialized data, it sends the amount of bytes that will be sent.


lib.rs:

This library adds SerdeRead and SerdeWrite, both for [std] and tokio variants.

For both implementations, use the full flag.

It uses MessagePack (https://crates.io/crates/rmp-serde) for both serialization and deserialization.

Before sending the serialized data, it sends the amount of bytes that will be sent.

Dependencies

~0.8–2.7MB
~52K SLoC