The rust-octseq package
Variable length octet sequences.
This crate provides a set of basic traits that allow defining types that are generic over a variable length sequence of octets (or, vulgo: bytes). It implements these traits for most commonly used types of such sequences and provides a array-backed type for use in a no-std environment.