mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-12 20:47:41 +02:00
* Update dependencies: rpki-rs, and therefore bytes, tokio, hyper, reqwest
* Rust 1.51 clippy
* Update minimal rust version to 1.47
socket2 requires improved const fn support.
exponential compile-time and type_length_limit and async in 1.46.
See PR #586
16 lines
420 B
Rust
16 lines
420 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.47.0").unwrap() {
|
|
eprintln!(
|
|
"\n\nAt least Rust version 1.47 is required.\n\
|
|
Version {} is used for building.\n\
|
|
Build aborted.\n\n",
|
|
version
|
|
);
|
|
panic!();
|
|
}
|
|
}
|