Skip to main content

dist_cache_path

Function dist_cache_path 

Source
pub fn dist_cache_path(cache_root: &Path, name: &str, url: &str) -> PathBuf
Expand description

Cache path of a dist, identical to Composer’s: sha1 of the FULL URL (deliberate in Composer: prevents cross-repository poisoning), key sanitised to [a-z0-9._/-].