Function reg_index::force_add

source ·
pub fn force_add(
    index_path: impl AsRef<Path>,
    index_url: &str,
    manifest_path: Option<&Path>,
    upload: Option<&str>,
    package_args: Option<&Vec<String>>
) -> Result<IndexPackage, Error>
Expand description

Add a new entry to the index, overwriting the existing entry if one already exists.

This will add an entry based on the contents of a .crate file. See add for a variant that takes a path to a Cargo.toml manifest, and for more details on how this works.