Function version_check::is_min_date[][src]

pub fn is_min_date(min_date: &str) -> Option<(bool, String)>

Checks that the running or installed rustc was released no earlier than some date.

The format of min_date must be YYYY-MM-DD. For instance: 2016-12-20 or 2017-01-09.

If the date cannot be retrieved or parsed, or if min_date could not be parsed, returns None. Otherwise returns a tuple where the first value is true if the installed rustc is at least from min_data and the second value is the date (in YYYY-MM-DD) of the installed rustc.