Skip to main content

cached_for

Function cached_for 

Source
pub fn cached_for(dep: &Dep, root: Option<&Path>) -> Option<Source>
Expand description

A previously fetched copy, if any (never touches the network). root lets the lookup see the project’s configured source, so a cached public copy is never returned for a package whose lockfile pins a private registry.