pub struct ConfigFileCache(/* private fields */);Expand description
Per-config-file memoization for .cargo/config.toml/$CARGO_HOME/config.toml parsing
(spec NFR-005, plan-1b §1.5).
Caches raw, unvalidated tables — alias filtering, env overrides,
RegistryIndex::new validation, and [source] chain walking all run per parse
against these cached tables, never cached themselves. This is what keeps a policy change
(didChangeConfiguration), a newly-referenced alias, or an env-var change taking effect
immediately without any cache invalidation of their own.
Owned by crate::parser::CargoParseContext and shared across every document this
ecosystem parses, so hundreds of workspace members sharing one .cargo/config.toml
collapse to a single cached entry. A thin newtype over deps_core::MtimeFileCache —
the mtime-gated caching mechanism itself lives there, shared with deps-npm.