Function reg_index::add_from_crate
source · pub fn add_from_crate(
index_path: impl AsRef<Path>,
index_url: &str,
crate_path: impl AsRef<Path>,
upload: Option<&str>
) -> Result<IndexPackage, Error>
Expand description
Add a new entry to the index.
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.