From b2797c0c450f40a098ae0267dbd7a1d8be9fd0ef Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sat, 9 Dec 2017 22:03:59 -0800 Subject: [PATCH] Bump minimum rust version to 1.20 --- .travis.yml | 10 +++++----- README.md | 2 +- build.rs | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 50eda9c..965b65f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,19 +59,19 @@ matrix: # Minimum Rust supported channel. - os: linux - rust: 1.19.0 + rust: 1.20.0 env: TARGET=x86_64-unknown-linux-gnu - os: linux - rust: 1.19.0 + rust: 1.20.0 env: TARGET=x86_64-unknown-linux-musl - os: linux - rust: 1.19.0 + rust: 1.20.0 env: TARGET=i686-unknown-linux-gnu - os: linux - rust: 1.19.0 + rust: 1.20.0 env: TARGET=i686-unknown-linux-musl - os: osx - rust: 1.19.0 + rust: 1.20.0 env: TARGET=x86_64-apple-darwin # Code formatting check diff --git a/README.md b/README.md index d620849..55199c3 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ With Rust's package manager [cargo](https://github.com/rust-lang/cargo), you can ``` cargo install fd-find ``` -Note that rust version *1.19.0* or later is required. +Note that rust version *1.20.0* or later is required. ### From binaries diff --git a/build.rs b/build.rs index 50e09bf..3de4fbb 100644 --- a/build.rs +++ b/build.rs @@ -18,12 +18,12 @@ use std::fs; include!("src/app.rs"); fn main() { - match version_check::is_min_version("1.19") { - // rustc >= 1.19 + match version_check::is_min_version("1.20") { + // rustc >= 1.20 Some((true, _)) => {} - // rustc < 1.19 or can't figure it out + // rustc < 1.20 or can't figure it out _ => { - writeln!(&mut io::stderr(), "This crate requires rustc >= 1.19").unwrap(); + writeln!(&mut io::stderr(), "This crate requires rustc >= 1.20").unwrap(); exit(1); } }