Struct cargo::sources::registry::RegistrySource [] [src]

pub struct RegistrySource<'cfg> {
    // some fields omitted
}

Methods

impl<'cfg> RegistrySource<'cfg>
[src]

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>
[src]

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

Attempt to find the packages that match a dependency request.

impl<'cfg> Source for RegistrySource<'cfg>
[src]

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

The update method performs any network operations required to get the entire list of all names, versions and dependencies of packages managed by the Source. Read more

fn download(&mut self, package: &PackageId) -> CargoResult<Package>

The download method fetches the full package for each name and version specified. Read more

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

Generates a unique string which represents the fingerprint of the current state of the source. Read more