mirror of
https://github.com/sharkdp/fd
synced 2024-11-05 16:58:21 +00:00
Bump minimum rust version to 1.20
This commit is contained in:
parent
aaf9e024d5
commit
b2797c0c45
3 changed files with 10 additions and 10 deletions
10
.travis.yml
10
.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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
8
build.rs
8
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue