mirror of https://github.com/sharkdp/fd.git
Bump minimum required Rust version
This commit is contained in:
parent
4b5efa3438
commit
3c87952c47
10
.travis.yml
10
.travis.yml
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
4
build.rs
4
build.rs
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue