pub fn create(opts: &CreateOptions) -> Result<CreateReport, PackError>Expand description
Pack a project root into a single archive.
§Arguments
opts— Source root, destination path, and compression level.
§Returns
A CreateReport carrying the manifest — including everything that was
deliberately skipped — so the caller can report it without re-reading the
archive.
§Errors
PackError::NotADirectoryif the root is not a directory.PackError::Ioon any read or write failure.PackError::ManifestSerializeif the manifest cannot be serialized.