From 858795d37c41c8e6f06bd3fc9b99a4813dba0c9a Mon Sep 17 00:00:00 2001 From: tottoto Date: Sun, 26 Oct 2025 05:38:08 +0900 Subject: [PATCH] fix: fix msrv on windows and macos target --- .github/workflows/CI.yml | 13 ++++++++++--- Cargo.toml | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ca6d998..28656f5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -56,17 +56,24 @@ jobs: - run: cargo test --all-features msrv: - name: Check MSRV (${{ matrix.rust }}) + name: Check MSRV (${{ matrix.rust }}) on ${{ matrix.os }} needs: [style] strategy: matrix: rust: [ 1.63 ] # keep in sync with 'rust-version' in Cargo.toml - runs-on: ubuntu-latest + os: + - ubuntu-latest + - windows-latest + - macos-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 - name: Resolve MSRV aware dependencies - run: cargo update + run: | + cargo update + cargo update system-configuration --precise 0.5.0 env: CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS: fallback - name: Install Rust (${{ matrix.rust }}) diff --git a/Cargo.toml b/Cargo.toml index 1922618..e80f491 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,10 +48,10 @@ pretty_env_logger = "0.5" pnet_datalink = "0.35.0" [target.'cfg(target_os = "macos")'.dependencies] -system-configuration = { version = "0.6.1", optional = true } +system-configuration = { version = ">=0.5, <0.7", optional = true } [target.'cfg(windows)'.dependencies] -windows-registry = { version = "0.6", optional = true } +windows-registry = { version = ">=0.3, <0.7", optional = true } [features] default = []