Function cargo::ops::cargo_add::latest_compatible
source ยท fn latest_compatible<'s>(
msrvs: &[(&'s Summary, Option<&RustVersion>)],
pkg_msrv: &PartialVersion,
) -> Option<&'s Summary>
Expand description
Of MSRV-compatible summaries, find the highest version
Assumptions:
msrvs
is sorted by version