Bump minimum rust version to 1.20

This commit is contained in:
sharkdp 2017-12-09 22:03:59 -08:00
parent aaf9e024d5
commit b2797c0c45
3 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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);
}
}