From 6c27cf9161b14aef602b255d453dbf526597b2fe Mon Sep 17 00:00:00 2001 From: tottoto Date: Thu, 17 Jul 2025 12:23:02 +0900 Subject: [PATCH] feat: allow socket2 0.6 --- .github/workflows/CI.yml | 12 ++++-------- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 211c1aaa..e52508b5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -65,14 +65,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - name: Pin some dependencies for MSRV - run: | - cargo update - cargo update --package tokio --precise 1.38.1 - cargo update --package tokio-util --precise 0.7.11 - cargo update --package hashbrown --precise 0.15.0 - cargo update --package once_cell --precise 1.20.3 - cargo update --package tracing-core --precise 0.1.33 + - name: Resolve MSRV aware dependencies + run: cargo update + env: + CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS: fallback - name: Install Rust (${{ matrix.rust }}) uses: dtolnay/rust-toolchain@master with: diff --git a/Cargo.toml b/Cargo.toml index 13a89018..ccc3e536 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ ipnet = { version = "2.9", optional = true } libc = { version = "0.2", optional = true } percent-encoding = { version = "2.3", optional = true } pin-project-lite = "0.2.4" -socket2 = { version = "0.5.9", optional = true, features = ["all"] } +socket2 = { version = ">=0.5.9, <0.7", optional = true, features = ["all"] } tracing = { version = "0.1", default-features = false, features = ["std"], optional = true } tokio = { version = "1", optional = true, default-features = false } tower-service = { version = "0.3", optional = true }