From c0c1cc076340127c5a3f33013f557edb51a30a2f Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Fri, 6 Dec 2024 02:09:21 -0500 Subject: [PATCH] Drop support for Rust 1.80. (#1018) --- .github/workflows/ci.yml | 6 +++--- Cargo.toml | 4 ++-- src/config.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d0393ca..1daade7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -169,7 +169,7 @@ jobs: # # Also make sure to update the MSRV in the cargo-semver-checks-action CI: # https://github.com/obi1kenobi/cargo-semver-checks-action/blob/main/.github/workflows/test-action.yml#L18 - toolchain: ["1.80", "1.81", "1.82", "stable", "beta"] + toolchain: ["1.81", "1.82", "stable", "beta"] experimental: [false] include: - toolchain: "nightly" @@ -1783,7 +1783,7 @@ jobs: id: toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: "1.79" + toolchain: "1.80" rustflags: "" cache: false @@ -1826,7 +1826,7 @@ jobs: - name: Check output run: | cd semver - EXPECTED="$(echo -e "error: rustc version is not high enough: >=1.80.0 needed, got 1.79.0")" + EXPECTED="$(echo -e "error: rustc version is not high enough: >=1.81.0 needed, got 1.80.1")" RESULT="$(cat output | grep 'error: rustc version')" diff <(echo "$RESULT") <(echo "$EXPECTED") diff --git a/Cargo.toml b/Cargo.toml index 11ee6565..9ace53d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ repository = "https://github.com/obi1kenobi/cargo-semver-checks" readme = "./README.md" keywords = ["semver", "linter", "check", "crate", "cargo"] categories = ["command-line-utilities", "development-tools::cargo-plugins"] -rust-version = "1.80" +rust-version = "1.81" exclude = [".github/", "brand/", "scripts/", "test_crates/", "test_outputs/", "tests/"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -18,7 +18,7 @@ exclude = [".github/", "brand/", "scripts/", "test_crates/", "test_outputs/", "t trustfall = "0.8.0" # `cargo_metadata` is used at the API boundary of `trustfall_rustdoc`, # so ensure the version we use for `cargo_metadata` here matches what `trustfall_rustdoc` uses too. -trustfall_rustdoc = { version = "0.18.1", default-features = false, features = ["v30", "v32", "v33", "v34", "v35", "v36", "v37", "rayon", "rustc-hash"] } +trustfall_rustdoc = { version = "0.18.1", default-features = false, features = ["v32", "v33", "v35", "v36", "v37", "rayon", "rustc-hash"] } cargo_metadata = "0.18.1" # End of dependency block diff --git a/src/config.rs b/src/config.rs index be99b071..860120f8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -37,7 +37,7 @@ impl GlobalConfig { Self { level: None, handlebars: make_handlebars_registry(), - minimum_rustc_version: semver::Version::new(1, 80, 0), + minimum_rustc_version: semver::Version::new(1, 81, 0), stdout: AutoStream::new(Box::new(std::io::stdout()), stdout_choice), stderr: AutoStream::new(Box::new(std::io::stderr()), stderr_choice), feature_flags: HashSet::new(),