mirror of
https://github.com/NLnetLabs/routinator.git
synced 2024-05-19 06:50:04 +00:00
15 lines
412 B
Rust
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.42.0").unwrap() {
|
|
eprintln!(
|
|
"\n\nAt least Rust version 1.42 is required.\n\
|
|
Version {} is used for building.\n\
|
|
Build aborted.\n\n",
|
|
version);
|
|
panic!();
|
|
}
|
|
}
|