I expected to see this happen: cargo build without issue
Instead, this happened:
--> /home/papey/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.22/src/server/tcp.rs:59:12
|
59 | ka.with_interval(interval)
| ^^^^^^^^^^^^^ method not found in `TcpKeepalive`
Version
As a transitive dependency from another crate, I get
hyper = "0.14.22"
, and thensocket2 = "0.4.7"
.Platform
Description
When a project adds hyper as a transitive dependency, some required features for
socket2
are missing, and my project wont compile.I tried this code:
Cargo.lock
:I expected to see this happen:
cargo build
without issueInstead, this happened:
It leads to those lines or this doc in socket2.
With the mention of :
On the function used in hyper
tcp.rs
.Adding socket2 as a dep with the the
all
feature in myCargo.toml
file solve the issue :but it's far from ideal and I think that it should be enabled on hyper side. I can work on the PR if you want.
Thanks :+1: