mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2024-11-27 09:40:54 +00:00
ed6274ac59
Also simplify build.rs. Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 lines
155 B
Rust
8 lines
155 B
Rust
extern crate version_check;
|
|
|
|
fn main() {
|
|
if version_check::is_min_version("1.28.0").unwrap_or(true) {
|
|
println!("cargo:rustc-cfg=stable_i128");
|
|
}
|
|
}
|