epserde 0.13.1

ε-serde is an ε-copy (i.e., almost zero-copy) serialization/deserialization framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * SPDX-FileCopyrightText: 2026 Sebastiano Vigna
 *
 * SPDX-License-Identifier: Apache-2.0 OR MIT
 */

use epserde::prelude::*;

// #[epserde(...)] attributes are not supported on enum variants: field-level
// markers such as force_full_copy must be placed on the fields of the variant.
#[derive(Epserde)]
enum Enum {
    #[epserde(force_full_copy)]
    A(Vec<u32>),
    B,
}

fn main() {}