cargo::ops::cargo_package

Function tar

source
fn tar(
    ws: &Workspace<'_>,
    pkg: &Package,
    local_reg: Option<&TmpRegistry<'_>>,
    ar_files: Vec<ArchiveFile>,
    dst: &File,
    filename: &str,
) -> CargoResult<u64>
Expand description

Compresses and packages a list of ArchiveFiles and writes into the given file.

Returns the uncompressed size of the contents of the new archive file.