slpc
The library half of the Rust implementation of slipcase, a container format that attaches metadata to a file.
A .slpc file is a ZIP archive holding a payload file of any type together with
a TOML metadata document describing it. The two become one file, so copying,
moving, or sending the payload carries its metadata along.
let mut c = open?;
println!;
copy?;
The payload is a stream and is never read into memory. Metadata is exposed as a document that keeps comments, key order, and whitespace across a rewrite, and as the member's bytes for a caller who wants a different parser or a hash.
The command-line tool built on this library is slipcase, in the same
repository. The specification lives in excelano/slipcase and is the authority
on the format.
License
MIT. See LICENSE.