summaryrefslogtreecommitdiff
path: root/rand/rand_chacha/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rand/rand_chacha/build.rs')
-rw-r--r--rand/rand_chacha/build.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/rand/rand_chacha/build.rs b/rand/rand_chacha/build.rs
index cb3ae20..06e12a4 100644
--- a/rand/rand_chacha/build.rs
+++ b/rand/rand_chacha/build.rs
@@ -1,8 +1,7 @@
-extern crate rustc_version;
-use rustc_version::{version, Version};
+extern crate autocfg;
fn main() {
- if version().unwrap() >= Version::parse("1.26.0").unwrap() {
- println!("cargo:rustc-cfg=rust_1_26");
- }
+ println!("cargo:rerun-if-changed=build.rs");
+ let ac = autocfg::new();
+ ac.emit_rustc_version(1, 26);
}