pub struct RegistryQueryer<'a> {
    pub registry: &'a mut (dyn Registry + 'a),
    replacements: &'a [(PackageIdSpec, Dependency)],
    version_prefs: &'a VersionPreferences,
    minimal_versions: bool,
    registry_cache: HashMap<Dependency, Poll<Rc<Vec<Summary>>>>,
    summary_cache: HashMap<(Option<PackageId>, Summary, ResolveOpts), (Rc<(HashSet<InternedString>, Rc<Vec<(Dependency, Rc<Vec<Summary>>, Rc<BTreeSet<InternedString>>)>>)>, bool)>,
    used_replacements: HashMap<PackageId, Summary>,
}

Fields§

§registry: &'a mut (dyn Registry + 'a)§replacements: &'a [(PackageIdSpec, Dependency)]§version_prefs: &'a VersionPreferences§minimal_versions: bool

If set the list of dependency candidates will be sorted by minimal versions first. That allows cargo update -Z minimal-versions which will specify minimum dependency versions to be used.

§registry_cache: HashMap<Dependency, Poll<Rc<Vec<Summary>>>>

a cache of Candidates that fulfil a Dependency

§summary_cache: HashMap<(Option<PackageId>, Summary, ResolveOpts), (Rc<(HashSet<InternedString>, Rc<Vec<(Dependency, Rc<Vec<Summary>>, Rc<BTreeSet<InternedString>>)>>)>, bool)>

a cache of Dependencys that are required for a Summary

§used_replacements: HashMap<PackageId, Summary>

all the cases we ended up using a supplied replacement

Implementations§

Queries the registry to return a list of candidates for dep.

This method is the location where overrides are taken into account. If any candidates are returned which match an override then the override is applied by performing a second query for what the override should return.

Find out what dependencies will be added by activating candidate, with features described in opts. Then look up in the registry the candidates that will fulfil each of these dependencies, as it is the next obvious question.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 192 bytes