oxicode 0.2.5

A modern binary serialization library - successor to bincode
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `#[derive(Encode, Decode, BorrowDecode)]` must be rejected on unions: none
//! of the three traits can be safely derived for a `union` (no way to know
//! which field is active), so each derive macro must surface a clear
//! compile error instead of generating unsound code.

use oxicode::{BorrowDecode, Decode, Encode};

#[derive(Encode, Decode, BorrowDecode)]
union Overlapped {
    a: u32,
    b: f32,
}

fn main() {}