pub fn validate_cache_crate_name(crate_name: &str) -> Result<()>Expand description
Validate a crate name before using it as a filesystem path component.
Returns an error if the name contains path separators, NUL bytes, ..,
or is a bare . — any of which could be used to escape the cache directory.