Skip to main content

canonical_key

Function canonical_key 

Source
pub fn canonical_key(path: &Path) -> PathBuf
Expand description

Normalise a repository path into the form used as a registry key.

Falls back to the path as given when it cannot be canonicalised (e.g. it no longer exists), so entries for deleted repos stay addressable.