hyperium / hyper-tls

Apache License 2.0
189 stars 96 forks source link

hyper-tls = "0.5.0" and hyper v0.14.19 failed, 0.14.18 succeed #92

Closed liyongjing closed 2 years ago

liyongjing commented 2 years ago

rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file Cargo.toml, cargo 1.61.0 (a028ae42f 2022-04-29): Failed to run "cargo" "metadata" "--format-version" "1" "--manifest-path" "Cargo.toml" "--filter-platform" "x86_64-apple-darwin": cargo metadata exited with an error: Updating crates.io index error: failed to select a version for hyper. ... required by package hyper-tls v0.5.0 ... which satisfies dependency hyper-tls = "^0.5.0" (locked to 0.5.0) of package ` versions that meet the requirements^0.14.2` (locked to 0.14.18) are: 0.14.18

all possible versions conflict with previously selected packages.

previously selected package hyper v0.14.19

failed to select a version for hyper which could resolve this conflict

seanmonstar commented 2 years ago

Either a package in your dependency tree specifically requires =0.14.18, or you may just need to cargo clean and update.

But it's not something related to this crate.

liyongjing commented 2 years ago

It looks like cargo's bug