Skip to content

Commit 53226f8

Browse files
committed
Upgrade minimum reqiured version of Rust to 1.29
This upgrades the minimum required version of Rust to 1.29 in order to fix #288. See also: - Rust compiler bug ticket: rust-lang/rust#50619 - Rust compiler PR with the fix: rust-lang/rust#50630 closes #288
1 parent 8fb25f1 commit 53226f8

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@ matrix:
6464

6565
# Minimum Rust supported channel.
6666
- os: linux
67-
rust: 1.20.0
67+
rust: 1.29.0
6868
env: TARGET=x86_64-unknown-linux-gnu
6969
- os: linux
70-
rust: 1.20.0
70+
rust: 1.29.0
7171
env: TARGET=x86_64-unknown-linux-musl
7272
- os: linux
73-
rust: 1.20.0
73+
rust: 1.29.0
7474
env: TARGET=i686-unknown-linux-gnu
7575
- os: linux
76-
rust: 1.20.0
76+
rust: 1.29.0
7777
env: TARGET=i686-unknown-linux-musl
7878
- os: osx
79-
rust: 1.20.0
79+
rust: 1.29.0
8080
env: TARGET=x86_64-apple-darwin
8181

8282
# Code formatting check

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ With Rust's package manager [cargo](https://github.com/rust-lang/cargo), you can
218218
```
219219
cargo install fd-find
220220
```
221-
Note that rust version *1.20.0* or later is required.
221+
Note that rust version *1.29.0* or later is required.
222222

223223
### From binaries
224224

build.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ use std::process::exit;
1818
include!("src/app.rs");
1919

2020
fn main() {
21-
match version_check::is_min_version("1.20") {
22-
// rustc >= 1.20
21+
match version_check::is_min_version("1.29") {
2322
Some((true, _)) => {}
24-
// rustc < 1.20 or can't figure it out
23+
// rustc version too small or can't figure it out
2524
_ => {
26-
writeln!(&mut io::stderr(), "This crate requires rustc >= 1.20").unwrap();
25+
writeln!(&mut io::stderr(), "'fd' requires rustc >= 1.29").unwrap();
2726
exit(1);
2827
}
2928
}

0 commit comments

Comments
 (0)