Struct cargo::sources::registry::RegistrySource
[−]
[src]
pub struct RegistrySource<'cfg> { // some fields omitted }
Methods
impl<'cfg> RegistrySource<'cfg>
fn new(source_id: &SourceId, config: &'cfg Config) -> RegistrySource<'cfg>
fn url(config: &Config) -> CargoResult<Url>
Get the configured default registry URL.
This is the main cargo registry by default, but it can be overridden in a .cargo/config
fn default_url() -> String
Get the default url for the registry
fn config(&self) -> CargoResult<RegistryConfig>
Decode the configuration stored within the registry.
This requires that the index has been at least checked out.
fn summaries(&mut self, name: &str) -> CargoResult<&Vec<(Summary, bool)>>
Parse the on-disk metadata for the package provided