aboutsummaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/build.rs b/build.rs
index b39468d..81ad970 100644
--- a/build.rs
+++ b/build.rs
@@ -3,17 +3,13 @@ use std::process::Command;
use std::str;
fn main() {
+ println!("cargo:rerun-if-changed=build.rs");
+
let compiler = match rustc_minor_version() {
Some(compiler) => compiler,
None => return,
};
- if compiler < 32 {
- // u64::from_ne_bytes.
- // https://doc.rust-lang.org/std/primitive.u64.html#method.from_ne_bytes
- println!("cargo:rustc-cfg=no_from_ne_bytes");
- }
-
if compiler < 33 {
// Exhaustive integer patterns. On older compilers, a final `_` arm is
// required even if every possible integer value is otherwise covered.
@@ -41,7 +37,7 @@ fn main() {
if compiler < 45 {
// String::strip_prefix.
- // https://doc.rust-lang.org/std/primitive.str.html#method.repeat
+ // https://doc.rust-lang.org/std/primitive.str.html#method.strip_prefix
println!("cargo:rustc-cfg=no_str_strip_prefix");
}