Module cargo::core::registry

source ·
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§

Enums§

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§

Type Aliases§

  • LockedMap 🔒
    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.