Function cargo::ops::cargo_package::package_one

source ·
pub fn package_one(
    ws: &Workspace<'_>,
    pkg: &Package,
    opts: &PackageOpts<'_>,
) -> CargoResult<FileLock>
Expand description

Packages a single package in a workspace, returning the resulting tar file.

§Panics

Panics if opts.list is true. In that case you probably don’t want to actually build the package tarball; you should just make and print the list of files. (We don’t currently provide a public API for that, but see how package does it.)