omjadas / hudsucker

Intercepting HTTP/S proxy
https://crates.io/crates/hudsucker
Apache License 2.0
209 stars 37 forks source link

v0.18.0 not found on crates.io #36

Closed KrullBorg closed 1 year ago

KrullBorg commented 1 year ago

hi, i'm sorry but i'm very noob with rust so i think that this is a stupid question

i'm trying to use hudsucker; i put hudsucker = "0.18.0" on my Cargo.toml, but running cargo build i get

Updating crates.io index
error: failed to select a version for the requirement `hudsucker = "^0.18.0"`
candidate versions found which didn't match: 0.16.1, 0.16.0, 0.15.0, ...
location searched: crates.io index

it works using 0.16.1

what am i doing wrong?

thanks in advance

omjadas commented 1 year ago

Could you please provide your entire Cargo.toml file?

KrullBorg commented 1 year ago
[package]                                                                                                                                                                     
name = "pippo"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html                                                                              

[dependencies]
hudsucker = "0.18.0"
omjadas commented 1 year ago

Could you also let me know the output of cargo --version?

KrullBorg commented 1 year ago

$ cargo --version cargo 1.56.0

omjadas commented 1 year ago

I believe the issue is that in hudsucker 0.17.0 I started using namespaced dependencies and weak dependency features, which were introduced in rust 1.60.0. Assuming you are using rustup you can run rustup update stable to update to the latest stable version of rust (1.65.0 at the time of writing).

KrullBorg commented 1 year ago

sorry for delay, i'll try asap to update rust (i'm using the version packaged on debian unstable)

omjadas commented 1 year ago

@KrullBorg, can this issue be closed?

omjadas commented 1 year ago

Closing, as I believe this has been addressed.