Function cargo::ops::vendor::prepare_for_vendor

source ·
fn prepare_for_vendor(
    me: &Package,
    packaged_files: &[PathBuf],
    gctx: &GlobalContext,
) -> CargoResult<Package>
Expand description

HACK: Perform the bare minimum of prepare_for_publish needed for #14348.

There are parts of prepare_for_publish that could be directly useful (e.g. stripping [workspace]) while other parts that require other filesystem operations (moving the README file) and ideally we’d reuse cargo package code to take care of all of this for us.