bincode-next 3.1.1

A compact, ultra-fast binary serialization format for Rust, optimized for networking and storage!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![cfg(target_pointer_width = "64")]

extern crate bincode_next as bincode;

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

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

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