From ba36380de4bd4fde0c3178ed1076f29517822f88 Mon Sep 17 00:00:00 2001 From: Josh McKinney Date: Sat, 22 Jun 2024 06:10:52 -0700 Subject: [PATCH] bump msrv to 1.60.0 package `windows-result v0.1.2` cannot be built because it requires rustc 1.60 or newer --- .github/workflows/check.yml | 4 ++-- .github/workflows/test.yml | 6 +++--- Cargo.toml | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index cd79978..8491db2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,7 +8,7 @@ on: env: CARGO_TERM_COLOR: always - MSRV: "1.56.0" + MSRV: "1.60.0" # ensure that the workflow is only triggered once per PR, subsequent pushes to the PR will cancel # and restart the workflow. See https://docs.github.com/en/actions/using-jobs/using-concurrency @@ -74,7 +74,7 @@ jobs: RUSTDOCFLAGS: --cfg docsrs msrv: # check that we can build using the minimal rust version that is specified by this crate - name: check (1.56.0) + name: check msrv runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f8b9a7f..e8e9e17 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,9 +24,9 @@ jobs: name: Test (${{ matrix.toolchain }}) strategy: matrix: - # run on stable and beta to ensure that tests won't break on the next version of the rust - # toolchain - toolchain: [stable, beta, 1.56.0] + # run on beta to ensure that tests won't break on the next version of the rust toolchain + # run on msrv to ensure that tests won't break on the minimum supported version of the rust + toolchain: [stable, beta, 1.60.0] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/Cargo.toml b/Cargo.toml index 775f85b..8446dbf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,8 @@ license = "MIT" keywords = ["winapi", "abstractions", "crossterm", "windows", "screen_buffer"] exclude = ["target", "Cargo.lock"] readme = "README.md" -edition = "2018" +edition = "2021" +rust-version = "1.60.0" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3.8", features = ["winbase", "consoleapi", "processenv", "handleapi", "synchapi", "impl-default"] }