pub fn parse_semver(tag: &str) -> Result<SemVer>Expand description
Parse a strict semver version from a string like “v1.2.3”, “1.2.3”, “v1.0.0-rc.1”, “v1.0.0+build.42”, or “v1.0.0-rc.1+build.42”.
The string must start with an optional v prefix followed by the version.
For prefixed tags like “cfgd-core-v2.1.0”, use parse_semver_tag instead.