Skip to content

hyper-util: Please don't use a version range dependency on socket2 #4058

@joshtriplett

Description

@joshtriplett

Version

hyper-util 0.1.20

Platform

Linux o 6.19.12+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.19.12-1 (2026-04-13) x86_64 GNU/Linux

Summary

Cargo's version resolver doesn't handle version ranges like this very well, resulting in non-deterministic flip-flopping of versions, or selection of multiple versions of socket2. (For instance, if other crates want the newer version, this range may result in cargo resolving to both the old and new version.)

rust-lang/cargo#9029
rust-lang/cargo#5529
https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/Cargo.2Elock.20non-deterministically.20flipflopping/with/520024108

Please consider depending exclusively on the new version of socket2.

I saw the mention that you want your MSRV to support Debian stable. Debian stable currently has 1.85, which works with latest socket2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-choreCategory: chore. a general chore or maintenance task.E-easyEffort: easy. A task that would be a great starting point for a new contributor.K-hyper-utilCrate: hyper-util

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions