1 2 3 4 5 6 7 8 9 10 11 12
use std::process::exit; fn main() { match version_check::is_min_version("1.29") { Some(true) => {} _ => { // rustc version too small or can't figure it out eprintln!("rustc>=1.29 is required due to feature(proc_macro) stabilitation"); exit(1); } } }