po-wire
Zero-dependency, no_std wire format codec for Protocol Orzatty (PO).
This crate provides the binary framing layer — encoding and decoding frame
headers with QUIC-style VarInt fields. It is the foundation of the PO stack:
every byte that crosses the network goes through po-wire.
Quick Start
use ;
// Encode a data frame header
let header = data; // channel 0, 13-byte payload
let mut buf = ;
let header_len = header.encode.unwrap;
// Decode it back
let = decode.unwrap;
assert_eq!;
Features
- Zero dependencies: No allocator needed. Pure
coreRust. no_stdcompatible: Runs on WASM, embedded, anywhere.- Compact: Minimum 4-byte header for small messages.
- QUIC VarInt: RFC 9000 §16 variable-length integer encoding.