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
/*
 * SPDX-FileCopyrightText: 2025 Sebastiano Vigna
 *
 * SPDX-License-Identifier: Apache-2.0 OR MIT
 */

//! `AlignedCursor` seals its type parameter to `AlignmentBlock`, so a type that
//! merely happens to be `Default + Clone` must be rejected. `String` has drop
//! glue and invalid bit patterns; permitting `AlignedCursor<String>` would let
//! safe code overwrite its fields with arbitrary bytes (undefined behavior).

use epserde::prelude::*;

fn main() {
    let _cursor = AlignedCursor::<String>::new();
}