From 05b1a565e0245a915326b8de2860f52f5d6c21ea Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Wed, 4 Sep 2024 21:40:09 +0800 Subject: [PATCH] chore: pin toolchain to MSRV(1.76) (#900) * chore: pin toolchain to MSRV(1.76) * chore: remove more toolchain action & update readme --- .github/workflows/ci.yml | 13 ------------- .github/workflows/create_release_assets.yml | 5 ----- .github/workflows/create_release_assets_cross.yml | 5 ----- Cargo.toml | 1 + README.md | 3 --- rust-toolchain.toml | 2 ++ 6 files changed, 3 insertions(+), 26 deletions(-) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79b17676..f70e69d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,6 @@ on: name: CI env: - RUST_VER: 'stable' CROSS_VER: '0.2.5' CARGO_NET_RETRY: 3 @@ -19,12 +18,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Rust - uses: dtolnay/rust-toolchain@master - with: - toolchain: '${{ env.RUST_VER }}' - components: rustfmt - - name: Run cargo fmt env: TERM: xterm-256color @@ -73,12 +66,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Rust - uses: dtolnay/rust-toolchain@master - with: - toolchain: '${{ env.RUST_VER }}' - components: clippy - - name: Setup Rust Cache uses: Swatinem/rust-cache@v2 with: diff --git a/.github/workflows/create_release_assets.yml b/.github/workflows/create_release_assets.yml index 5703861a..68c64224 100644 --- a/.github/workflows/create_release_assets.yml +++ b/.github/workflows/create_release_assets.yml @@ -18,11 +18,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: setup Rust - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt, clippy - - name: Install cargo-deb run: cargo install cargo-deb if: ${{ matrix.platform == 'ubuntu-latest' }} diff --git a/.github/workflows/create_release_assets_cross.yml b/.github/workflows/create_release_assets_cross.yml index 24972c26..459adbc5 100644 --- a/.github/workflows/create_release_assets_cross.yml +++ b/.github/workflows/create_release_assets_cross.yml @@ -24,11 +24,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: setup Rust - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt, clippy - - name: Install cargo-deb cross compilation dependencies run: sudo apt-get install libc6-arm64-cross libgcc-s1-arm64-cross if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }} diff --git a/Cargo.toml b/Cargo.toml index ec8e2149..676da655 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ categories = ["os"] keywords = ["upgrade", "update"] license = "GPL-3.0" repository = "https://github.com/topgrade-rs/topgrade" +rust-version = "1.76.0" version = "15.0.0" authors = ["Roey Darwish Dror ", "Thomas Schönauer "] exclude = ["doc/screenshot.gif", "BREAKINGCHANGES_dev.md"] diff --git a/README.md b/README.md index db990752..3a4bfa38 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,6 @@ To remedy this, **Topgrade** detects which tools you use and runs the appropriat Other systems users can either use `cargo install` or the compiled binaries from the release page. The compiled binaries contain a self-upgrading feature. -> Currently, Topgrade requires Rust 1.65 or above. In general, Topgrade tracks -> the latest stable toolchain. - ## Usage Just run `topgrade`. diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..624eb0ea --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.76.0"