bincode 2.0.0-rc.3

A binary serialization / deserialization strategy for transforming structs into bytes and vice versa!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![cfg(target_pointer_width = "64")]

#[test]
fn decode_error_size() {
    assert_eq!(std::mem::size_of::<bincode::error::DecodeError>(), 32);
}

#[test]
fn encode_error_size() {
    #[cfg(any(feature = "std", feature = "alloc"))]
    assert_eq!(std::mem::size_of::<bincode::error::EncodeError>(), 32);

    #[cfg(not(any(feature = "std", feature = "alloc")))]
    assert_eq!(std::mem::size_of::<bincode::error::EncodeError>(), 24);
}