envelo
⚠️ 0.0.x is pre-release/experimental; breaking changes are expected. See VERSIONS.md for status and compatibility details.
Minimal envelope for creation-time fields (Header), body (Payload), and per-route metadata (Extension). One type, zero dependencies, and #![no_std] by default.
What’s included
- Single type:
Envelo<Header, Payload, Extension>. - Clear split: immutable creation-time data in
Header; hop-local metadata inExtension. - Ergonomics: constructor, immutable/mutable accessors,
into_parts, andFrom<(H, P, E)>for easy wrapping. - Traits:
Debug + Clone + PartialEq + Eq + Hashwhen your field types support them. - Dependencies: none;
#![no_std]without feature flags.
Install
[]
= "0.0.1"
Example
use Envelo;
let msg = new;
assert_eq!;
Swap or mutate Extension as the message moves between stages. See ARCHITECTURE.md for design notes and patterns.
More
- VERSIONS.md: release status and compatibility.
- ARCHITECTURE.md: design goals and usage patterns.
- CONTRIBUTING.md: contribution guide.
License
Dual-licensed under MIT OR Apache-2.0. See the bundled license files.