mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2024-11-23 15:40:19 +00:00
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:
parent
fb03e618e1
commit
ed6274ac59
@ -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"]
|
||||
|
8
build.rs
8
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)) => {
|
||||
if version_check::is_min_version("1.28.0").unwrap_or(true) {
|
||||
println!("cargo:rustc-cfg=stable_i128");
|
||||
}
|
||||
Some(_) => (),
|
||||
None => {
|
||||
eprintln!("couldn't query version info from rustc");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user