Bump minimum required Rust version

This commit is contained in:
sharkdp 2018-12-09 15:11:43 +01:00 committed by David Peter
parent 4b5efa3438
commit 3c87952c47
3 changed files with 8 additions and 8 deletions

View File

@ -69,19 +69,19 @@ matrix:
# Minimum Rust supported channel.
- os: linux
rust: 1.29.0
rust: 1.31.0
env: TARGET=x86_64-unknown-linux-gnu
- os: linux
rust: 1.29.0
rust: 1.31.0
env: TARGET=x86_64-unknown-linux-musl
- os: linux
rust: 1.29.0
rust: 1.31.0
env: TARGET=i686-unknown-linux-gnu
- os: linux
rust: 1.29.0
rust: 1.31.0
env: TARGET=i686-unknown-linux-musl
- os: osx
rust: 1.29.0
rust: 1.31.0
env: TARGET=x86_64-apple-darwin
# Code formatting check

View File

@ -230,7 +230,7 @@ With Rust's package manager [cargo](https://github.com/rust-lang/cargo), you can
```
cargo install fd-find
```
Note that rust version *1.29.0* or later is required.
Note that rust version *1.31.0* or later is required.
### From binaries

View File

@ -18,11 +18,11 @@ use std::process::exit;
include!("src/app.rs");
fn main() {
match version_check::is_min_version("1.29") {
match version_check::is_min_version("1.31") {
Some((true, _)) => {}
// rustc version too small or can't figure it out
_ => {
writeln!(&mut io::stderr(), "'fd' requires rustc >= 1.29").unwrap();
writeln!(&mut io::stderr(), "'fd' requires rustc >= 1.31").unwrap();
exit(1);
}
}