pub fn select_version<'a>(
spec: &VersionSpec,
candidates: &'a [VersionInfo],
) -> Option<&'a VersionInfo>Expand description
Select the best matching version string from a candidate list for a spec.
candidates should be sorted ascending (oldest first). is_stable and
is_lts help resolve latest/lts. Returns the chosen version.