pub fn parse_version(raw: &str) -> Option<Version>Expand description
Parse a possibly-partial version string into a full semver::Version.
Pads missing minor/patch components with 0 ("0.31" → 0.31.0, "v1.4"
→ 1.4.0, "1" → 1.0.0) and returns None when the numeric core can’t
be parsed. Shared with the search-filter layer so version-match scoring and
version-constraint filtering normalize versions identically.