Skip to content

Commit

Permalink
bump msrv to 1.62.0
Browse files Browse the repository at this point in the history
package `windows-result v0.1.2` cannot be built because it requires rustc 1.60 or newer
  • Loading branch information
joshka committed Jun 22, 2024
1 parent c944224 commit d45a3bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
CARGO_TERM_COLOR: always
MSRV: "1.56.0"
MSRV: "1.62.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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [1.62.0, stable, beta]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
12 changes: 10 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,18 @@ license = "MIT"
keywords = ["winapi", "abstractions", "crossterm", "windows", "screen_buffer"]
exclude = ["target", "Cargo.lock"]
readme = "README.md"
edition = "2018"
edition = "2021"
rust-version = "1.62.0"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.8", features = ["winbase", "consoleapi", "processenv", "handleapi", "synchapi", "impl-default"] }
winapi = { version = "0.3.8", features = [
"winbase",
"consoleapi",
"processenv",
"handleapi",
"synchapi",
"impl-default",
] }

[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"

0 comments on commit d45a3bc

Please sign in to comment.