Skip to main content

validate_version

Function validate_version 

Source
pub fn validate_version(version: &str) -> Result<(), PortError>
Expand description

Rejects versions that cannot be used as an exact on-disk and identity selector. Accepts only v<major>.<minor>.<patch> with optional pre-release or build suffixes.