Function tame_index::utils::url_to_local_dir

source ยท
pub fn url_to_local_dir(url: &str) -> Result<UrlDir, Error>
Expand description

Converts a url into a relative path and its canonical form

Cargo uses a small algorithm to create unique directory names for any url so that they can be located in the same root without clashing

This function currently only supports 3 different URL kinds.

  • (?:registry+)?<git registry url>
  • sparse+<sparse registry url>
  • git+<git repo url>