Function cargo::ops::registry_configuration
source · [−]pub fn registry_configuration(
config: &Config,
registry: Option<&str>
) -> CargoResult<RegistryConfig>Expand description
Returns the index and token from the config file for the given registry.
registry is typically the registry specified on the command-line. If
None, index is set to None to indicate it should use crates.io.