pub struct Inputs<'a> {
pub repository: &'a Repository,
pub share: Option<&'a Share>,
pub index: Option<&'a Index>,
pub registry: Option<&'a CapabilityRegistry>,
pub policy: Option<&'a LoadedPolicy>,
}Expand description
What the resolver may read. A fast resolution carries no index and no registry; a full one carries both, and the presence of the index is what makes it full.
Fields§
§repository: &'a RepositoryThe repository, already discovered.
The distribution directory, when it was located.
index: Option<&'a Index>The index, in a full resolution.
registry: Option<&'a CapabilityRegistry>The registry, in a full resolution.
policy: Option<&'a LoadedPolicy>The policy, when the caller has already read it. The resolver reads it itself when
this is None, which is what every caller that needs nothing else from it does.
It is here for the one caller that does: majordomus env enter asks the policy
whether entry ensures a runtime, and then resolves a snapshot whose provider
projections come out of the same file. Two reads of one canonical file inside one
invocation is what project.hot-path-reads-once is about, and this is the hot path
by definition — it runs on every cd.