Skip to main content

split_version_platform

Function split_version_platform 

Source
pub fn split_version_platform(input: &str) -> (&str, Option<&str>)
Expand description

Split a version-platform string like “1.13.10-x86_64-linux” into the version part and an optional platform suffix.

Used by both the lockfile parser and the lockfile patcher.