[−][src]Function cargo::ops::registry_configuration
pub fn registry_configuration(
config: &Config,
registry: Option<String>
) -> CargoResult<RegistryConfig>
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.