Skip to main content

satisfies

Function satisfies 

Source
pub fn satisfies(version: &str, range: &str) -> bool
Expand description

Does version satisfy range? A range is one or more space-separated comparators, all of which must hold: ^1.2.3 (compatible: below the next major, or next minor while major is 0), ~1.2.3 (below the next minor), >=, >, <=, <, = or a bare 1.2.3 (exact). Empty or * accepts anything, even a version that is not x.y.z.