Function reg_index::metadata_from_crate
source · pub fn metadata_from_crate(
index_url: &str,
crate_path: impl AsRef<Path>
) -> Result<IndexPackage, Error>
Expand description
Get the metadata for a package before publishing it.
This will get the metadata directly from a .crate
file. See metadata
for a variant of this function that takes a path to a Cargo.toml
manifest, and for more details on how this works.