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
//! `#[oxicode(transparent)]` is a struct-only container attribute (it forwards
//! encode/decode to the struct's single field). Applying it to an enum has no
//! sensible meaning, so the derive macros must reject it with a clear error.

use oxicode::Encode;

#[derive(Encode)]
#[oxicode(transparent)]
enum Wrapper {
    A(u32),
}

fn main() {}