Skip to content

Commit

Permalink
Update to windows-sys 0.52. (#91)
Browse files Browse the repository at this point in the history
* Update to windows-sys 0.52.

* Update the MSRV to 1.56.

It appears windows-sys 0.52 has an MSRV of 1.56. Update the errno crate
to 1.56 as well.

* Remove a workaround that is no longer needed with Rust 1.56.
  • Loading branch information
sunfishcode authored Nov 28, 2023
1 parent a594777 commit fbe2e15
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable, nightly, '1.48']
rust: [stable, nightly, '1.56']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
# Workaround link failures if XCode 14 is combined with Rust <= 1.53
- name: Downgrade to XCode 13
if: ${{ matrix.os == 'macos-latest' && matrix.rust == '1.48' }}
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13'
- name: Setup cache
uses: Swatinem/rust-cache@v2
- name: Test (no features)
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ documentation = "https://docs.rs/errno"
repository = "https://github.com/lambda-fairy/rust-errno"
description = "Cross-platform interface to the `errno` variable."
categories = ["no-std", "os"]
rust-version = "1.48"
rust-version = "1.56"

[target.'cfg(unix)'.dependencies]
libc = { version = "0.2", default-features = false }

[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.48"
version = "0.52"
features = [
"Win32_Foundation",
"Win32_System_Diagnostics_Debug",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# errno [![CI](https://github.com/lambda-fairy/rust-errno/actions/workflows/main.yml/badge.svg)](https://github.com/lambda-fairy/rust-errno/actions/workflows/main.yml) [![Cargo](https://img.shields.io/crates/v/errno.svg)](https://crates.io/crates/errno)

Cross-platform interface to the [`errno`][errno] variable. Works on Rust 1.48 or newer.
Cross-platform interface to the [`errno`][errno] variable. Works on Rust 1.56 or newer.

Documentation is available at <https://docs.rs/errno>.

Expand Down
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
msrv = "1.48"
msrv = "1.56"

0 comments on commit fbe2e15

Please sign in to comment.