Drop the support of V1.30.1 and move to the rust 2018 edition

This commit is contained in:
Peltoche 2019-02-09 11:17:04 +01:00 committed by Pierre Peltier
parent e1138bbec3
commit 1cd275de76
3 changed files with 7 additions and 6 deletions

View file

@ -35,16 +35,16 @@ matrix:
# Minimum Rust supported channel.
- os: linux
rust: 1.30.1
rust: 1.31.0
env: TARGET=x86_64-unknown-linux-gnu
- os: linux
rust: 1.30.1
rust: 1.31.0
env: TARGET=i686-unknown-linux-gnu
- os: osx
rust: 1.30.1
rust: 1.31.0
env: TARGET=x86_64-apple-darwin
- os: linux
rust: 1.30.1
rust: 1.31.0
env:
- TARGET=arm-unknown-linux-gnueabihf
- CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc-4.8

View file

@ -9,6 +9,7 @@ name = "lsd"
readme = "./README.md"
repository = "https://github.com/Peltoche/lsd"
version = "0.12.1-pre"
edition = "2018"
[[bin]]
name = "lsd"

View file

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