mirror of https://github.com/sharkdp/fd.git
Bump minimum rust version to 1.20
This commit is contained in:
parent
aaf9e024d5
commit
b2797c0c45
10
.travis.yml
10
.travis.yml
|
@ -59,19 +59,19 @@ matrix:
|
||||||
|
|
||||||
# Minimum Rust supported channel.
|
# Minimum Rust supported channel.
|
||||||
- os: linux
|
- os: linux
|
||||||
rust: 1.19.0
|
rust: 1.20.0
|
||||||
env: TARGET=x86_64-unknown-linux-gnu
|
env: TARGET=x86_64-unknown-linux-gnu
|
||||||
- os: linux
|
- os: linux
|
||||||
rust: 1.19.0
|
rust: 1.20.0
|
||||||
env: TARGET=x86_64-unknown-linux-musl
|
env: TARGET=x86_64-unknown-linux-musl
|
||||||
- os: linux
|
- os: linux
|
||||||
rust: 1.19.0
|
rust: 1.20.0
|
||||||
env: TARGET=i686-unknown-linux-gnu
|
env: TARGET=i686-unknown-linux-gnu
|
||||||
- os: linux
|
- os: linux
|
||||||
rust: 1.19.0
|
rust: 1.20.0
|
||||||
env: TARGET=i686-unknown-linux-musl
|
env: TARGET=i686-unknown-linux-musl
|
||||||
- os: osx
|
- os: osx
|
||||||
rust: 1.19.0
|
rust: 1.20.0
|
||||||
env: TARGET=x86_64-apple-darwin
|
env: TARGET=x86_64-apple-darwin
|
||||||
|
|
||||||
# Code formatting check
|
# Code formatting check
|
||||||
|
|
|
@ -131,7 +131,7 @@ With Rust's package manager [cargo](https://github.com/rust-lang/cargo), you can
|
||||||
```
|
```
|
||||||
cargo install fd-find
|
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
|
### From binaries
|
||||||
|
|
||||||
|
|
8
build.rs
8
build.rs
|
@ -18,12 +18,12 @@ use std::fs;
|
||||||
include!("src/app.rs");
|
include!("src/app.rs");
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
match version_check::is_min_version("1.19") {
|
match version_check::is_min_version("1.20") {
|
||||||
// rustc >= 1.19
|
// rustc >= 1.20
|
||||||
Some((true, _)) => {}
|
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);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue