Browse Source

Bump minimum rustc toolchain

fix/optional-authors
Andrea Ciliberti 3 years ago
parent
commit
4cd3055780
  1. 1
      Cargo.toml
  2. 14
      src/main.rs

1
Cargo.toml

@ -10,6 +10,7 @@ edition = "2021" @@ -10,6 +10,7 @@ edition = "2021"
[dependencies]
cargo_metadata = "0.14.0"
rustc_version = "0.4.0"
semver = "1.0.10"
serde = "1.0.111"
serde_derive = "1.0.111"
tee = "0.1.0"

14
src/main.rs

@ -55,11 +55,11 @@ impl fmt::Display for CommitDate { @@ -55,11 +55,11 @@ impl fmt::Display for CommitDate {
}
const MINIMUM_COMMIT_DATE: CommitDate = CommitDate {
year: 2021,
month: 10,
day: 1,
year: 2022,
month: 6,
day: 15,
};
const MINIMUM_RUSTC_VERSION: Version = Version::new(1, 56, 0);
const MINIMUM_RUSTC_VERSION: Version = Version::new(1, 63, 0);
fn main() {
check_rust_version();
@ -307,7 +307,11 @@ fn check_rust_version() { @@ -307,7 +307,11 @@ fn check_rust_version() {
process::exit(1);
}
let old_version: bool = MINIMUM_RUSTC_VERSION > rustc_version.semver;
let old_version = MINIMUM_RUSTC_VERSION > Version {
// Remove `-nightly` pre-release tag for comparison.
pre: semver::Prerelease::EMPTY,
..rustc_version.semver.clone()
};
let old_commit = match rustc_version.commit_date {
None => false,

Loading…
Cancel
Save