1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00
2020-04-07 15:07:55 +02:00

15 lines
412 B
Rust

extern crate rustc_version;
use rustc_version::{Version, version};
fn main() {
let version = version().expect("Failed to get rustc version.");
if version < Version::parse("1.39.0").unwrap() {
eprintln!(
"\n\nAt least Rust version 1.39 is required.\n\
Version {} is used for building.\n\
Build aborted.\n\n",
version);
panic!();
}
}