Expand description
Types that hold source information for a group of packages.
The primary type you’re looking for is PackageRegistry. It is an
abstraction over multiple Sources. PackageRegistry also implements
the Registry trait, allowing a dependency resolver to query necessary
package metadata (i.e., Summary) from it.
Not to be confused with crate::sources::registry and crate::ops::registry.
The former is just one kind of source,
while the latter involves operations on the registry Web API.
Structs§
- Argument to
PackageRegistry::patchwhich is information about a[patch]directive that we found in a lockfile, if present.
Enums§
- Kind 🔒Kinds of sources a
PackageRegistryhas loaded.
Traits§
- An abstraction provides a set of methods for querying source information about a group of packages, without leaking too much implementation details of the actual registry.
Functions§
- lock 🔒
- A helper for selecting the summary, or generating a helpful error message.
Type Aliases§
- A map of all “locked packages” which is filled in when parsing a lock file and is used to guide dependency resolution by altering summaries as they’re queried from this source.
- This tuple is an argument to
PackageRegistry::patch.