[][src]Function reg_index::metadata

pub fn metadata(
    index_url: &str,
    manifest_path: Option<&Path>,
    package_args: Option<&Vec<String>>
) -> Result<IndexPackage, Error>

Get the metadata for a package before publishing it.

If the manifest_path is not given, it will search the current directory for the manifest.

This will call cargo package to generate a .crate file. The package_args will be given as-is to the cargo package command. See metadata_from_crate for a variant of this function that takes a pre-existing .crate file.

The index_url should be the public URL that users use to access the index this package will be added to.