Data Stream Derive
data-stream-derive provides procedural macros for (data-stream)[https://gitlab.com/porky11/data-stream]:
#[derive(ToStream)]#[derive(FromStream)]
It generates stream serialization and deserialization code for structs and enums.
Quick example
use ;
Supported attributes
Container attributes
#[stream(bounds = "...")]
use ;
use SizeSettings;
Field attributes
#[field(ignore)]
Ignored fields are not serialized and are filled with Default::default() on deserialize.
#[field(order = N)]
Controls read/write order of fields.
use ;
Variant attributes
#[variant(index = N)]
Sets a fixed enum discriminant value.
use ;