You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-nom/0001-chore-Update-version_c...

36 lines
906 B

From 72fbb0df336c28ecc5df02adcec512d565f845a4 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Tue, 26 Nov 2019 10:55:53 +0100
Subject: [PATCH] chore: Update version_check to 0.9
Also simplify build.rs.
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
---
build.rs | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/build.rs b/build.rs
index 994d7f9..9743c90 100644
--- a/build.rs
+++ b/build.rs
@@ -1,13 +1,7 @@
extern crate version_check;
fn main() {
- match version_check::is_min_version("1.28.0") {
- Some((true, _actual_version)) => {
- println!("cargo:rustc-cfg=stable_i128");
- }
- Some(_) => (),
- None => {
- eprintln!("couldn't query version info from rustc");
- }
+ if version_check::is_min_version("1.28.0").unwrap_or(true) {
+ println!("cargo:rustc-cfg=stable_i128");
}
}
--
2.24.0