Skip to main content

version_matches

Function version_matches 

Source
pub fn version_matches(constraint: &str, version: &str) -> bool
Expand description

Exact pin: constraint empty or equal to version. Compatible: constraint is a prefix of version followed by ‘.’ or end (1.0 matches 1.0.0).