Function version_check::is_min_version[][src]

pub fn is_min_version(min_version: &str) -> Option<(bool, String)>

Checks that the running or installed rustc is at least some minimum version.

The format of min_version is a semantic version: 1.3.0, 1.15.0-beta, 1.14.0, 1.16.0-nightly, etc.

If the version cannot be retrieved or parsed, or if min_version could not be parsed, returns None. Otherwise returns a tuple where the first value is true if the installed rustc is at least min_version and the second value is the version (semantic) of the installed rustc.