bincode 2.0.1

A binary serialization / deserialization strategy for transforming structs into bytes and vice versa!
Documentation
1
2
3
4
5
6
7
8
#![cfg(all(feature = "derive", feature = "std"))]

use bincode::{Decode, Encode};

#[derive(Encode, Decode)]
struct Foo<Bar = ()> {
    x: Bar,
}