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

Trait Implementations

impl<'cfg> Registry for RegistrySource<'cfg>

fn query(&mut self, dep: &Dependency) -> CargoResult<Vec<Summary>>

impl<'cfg> Source for RegistrySource<'cfg>

fn update(&mut self) -> CargoResult<()>

fn download(&mut self, packages: &[PackageId]) -> CargoResult<()>

fn get(&self, packages: &[PackageId]) -> CargoResult<Vec<Package>>

fn fingerprint(&self, pkg: &Package) -> CargoResult<String>