apfsds-protocol

Crates.ioapfsds-protocol
lib.rsapfsds-protocol
version0.2.0
created_at2026-01-17 15:47:55.329882+00
updated_at2026-01-18 02:46:06.764662+00
descriptionWire protocol and frame definitions for APFSDS
homepage
repository
max_upload_size
id2050693
size29,094
rand0mdevel0per (rand0mdevel0per)

documentation

README

apfsds-protocol

Wire protocol definitions and frame serialization for APFSDS.

Features

  • Zero-copy serialization using rkyv
  • ProxyFrame: Core data transmission unit with connection ID, flags, and payload
  • ControlMessage: Enum for control frames (DoH, Ping/Pong, KeyRotation, Emergency)
  • Authentication types: AuthRequest, AuthResponse

Usage

use apfsds_protocol::{ProxyFrame, FrameFlags, ControlMessage};

// Create a data frame
let frame = ProxyFrame {
    conn_id: 12345,
    flags: FrameFlags::DATA,
    payload: data.into(),
};

// Control messages
let msg = ControlMessage::Ping;

Frame Format

┌─────────────┬───────┬─────────────────────────────┐
│ conn_id (8B)│ flags │ payload (variable)          │
└─────────────┴───────┴─────────────────────────────┘

License

MIT

Commit count: 0

cargo fmt