Skip to main content

pack

Function pack 

Source
pub fn pack(src: &Path, out: &Path, extra: &[(&str, Vec<u8>)]) -> Result<usize>
Expand description

Packs every file under src, plus extra in-memory files, into one archive. Returns the number of files. Extra files override loose files with the same normalized name; repeated extra names use the last value. Entries are sorted for reproducible builds. The output archive itself is excluded when located inside src.