From dd4f1a2e5d0bcc7665e40722376bd2e63d21d4ee Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 7 Jan 2024 03:34:34 +0900 Subject: [PATCH 1/3] ci: Use cargo-hack's --rust-version flag for msrv check This respects rust-version field in Cargo.toml, so it removes the need to manage MSRV in both the CI file and Cargo.toml. --- .github/workflows/ci.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc49288..64d57a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,16 +45,11 @@ jobs: msrv: runs-on: ubuntu-latest - strategy: - matrix: - # When updating this, the reminder to update the minimum supported - # Rust version in Cargo.toml. - rust: ['1.59.0'] steps: - uses: actions/checkout@v4 - - name: Install Rust - run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} - - run: cargo build + - name: Install cargo-hack + uses: taiki-e/install-action@cargo-hack + - run: cargo hack build --rust-version clippy: runs-on: ubuntu-latest From a866302f00a92508d5a162dbc1ccb39158043ca9 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 7 Jan 2024 03:35:30 +0900 Subject: [PATCH 2/3] Bump MSRV to 1.60 https://github.com/crossbeam-rs/crossbeam/pull/1056 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8af27c9..0952f55 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ name = "async-dup" version = "1.2.4" authors = ["Stjepan Glavina "] edition = "2018" -rust-version = "1.59" +rust-version = "1.60" description = "Duplicate an async I/O handle" license = "Apache-2.0 OR MIT" repository = "https://github.com/smol-rs/async-dup" From 08615fd43eb2f84369b13858e92a3a8b33cf42b4 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 7 Jan 2024 03:35:57 +0900 Subject: [PATCH 3/3] Migrate to Rust 2021 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0952f55..c06ab2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ name = "async-dup" # - Create "v1.x.y" git tag version = "1.2.4" authors = ["Stjepan Glavina "] -edition = "2018" +edition = "2021" rust-version = "1.60" description = "Duplicate an async I/O handle" license = "Apache-2.0 OR MIT"