mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2024-11-23 07:29:54 +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"]
|
||||
|
10
build.rs
10
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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user