From 53226f82eb99d0effe286abe0e718799501a671e Mon Sep 17 00:00:00 2001 From: sharkdp Date: Mon, 17 Sep 2018 21:56:07 +0200 Subject: [PATCH] Upgrade minimum reqiured version of Rust to 1.29 This upgrades the minimum required version of Rust to 1.29 in order to fix #288. See also: - Rust compiler bug ticket: rust-lang/rust#50619 - Rust compiler PR with the fix: rust-lang/rust#50630 closes #288 --- .travis.yml | 10 +++++----- README.md | 2 +- build.rs | 7 +++---- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index c365552..f43e72e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,19 +64,19 @@ matrix: # Minimum Rust supported channel. - os: linux - rust: 1.20.0 + rust: 1.29.0 env: TARGET=x86_64-unknown-linux-gnu - os: linux - rust: 1.20.0 + rust: 1.29.0 env: TARGET=x86_64-unknown-linux-musl - os: linux - rust: 1.20.0 + rust: 1.29.0 env: TARGET=i686-unknown-linux-gnu - os: linux - rust: 1.20.0 + rust: 1.29.0 env: TARGET=i686-unknown-linux-musl - os: osx - rust: 1.20.0 + rust: 1.29.0 env: TARGET=x86_64-apple-darwin # Code formatting check diff --git a/README.md b/README.md index c5e93a8..55f8319 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ With Rust's package manager [cargo](https://github.com/rust-lang/cargo), you can ``` cargo install fd-find ``` -Note that rust version *1.20.0* or later is required. +Note that rust version *1.29.0* or later is required. ### From binaries diff --git a/build.rs b/build.rs index 5bc9b4b..d45d98b 100644 --- a/build.rs +++ b/build.rs @@ -18,12 +18,11 @@ use std::process::exit; include!("src/app.rs"); fn main() { - match version_check::is_min_version("1.20") { - // rustc >= 1.20 + match version_check::is_min_version("1.29") { Some((true, _)) => {} - // rustc < 1.20 or can't figure it out + // rustc version too small or can't figure it out _ => { - writeln!(&mut io::stderr(), "This crate requires rustc >= 1.20").unwrap(); + writeln!(&mut io::stderr(), "'fd' requires rustc >= 1.29").unwrap(); exit(1); } }