chore: Update version_check to 0.9

Also simplify build.rs.

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Gnatenko 2019-11-26 10:55:53 +01:00 committed by Geoffroy Couprie
parent fb03e618e1
commit ed6274ac59
2 changed files with 3 additions and 9 deletions

View File

@ -55,7 +55,7 @@ jemallocator = "^0.1"
doc-comment = "0.3"
[build-dependencies]
version_check = "^0.1"
version_check = "0.9"
[package.metadata.docs.rs]
features = [ "alloc", "std", "regexp", "regexp_macros", "lexical"]

View File

@ -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");
}
}