Skip to main content

is_safe_version_component

Function is_safe_version_component 

Source
pub fn is_safe_version_component(v: &str) -> bool
Expand description

A pinned version string is used as a path component, so it must be a plain version: letters, digits and ., -, _, +, no .., bounded. Anything else (including empty — an unpinned provider) has no shared dir and falls back to the legacy per-version location.