bzipper is a Rust crate for serialisation and deserialisation of binary streams.


See more at crates.io.

Contrary to Serde/Bincode, the goal of this crate is to serialise data with a known size limit. Therefore, this crate may be more suited for networking or other cases where a fixed-sized buffer is needed.

Most primitive types serialise losslessly, with the exception being usize and isize. These serialise as u16 and u32, respectively, for portability reasons.


Unsized types, such as str and slices, are not supported. Instead, array should be used. For strings, the FixedString type is also provided.

Documentation is written in-source. See docs.rs for a rendered instance.