Hi all, I'm trying to add the urlencoding
crate as a dependency to a fresh project generated by cargo
. Right now, this is the only dependency listed in my Cargo.toml
.
[dependencies]
urlencoding = "2.1.0"
cargo search urlencoding
shows the latest version is indeed 2.1.0 (and web UI indicates this version is not yanked):
❯ cargo search urlencoding --limit 1
urlencoding = "2.1.0" # A Rust library for doing URL percentage encoding.
... and 47 crates more (use --limit N to see more)
However, running cargo fetch
/cargo build
results in this error:
error: failed to select a version for the requirement `urlencoding = "^2.1.0"`
candidate versions found which didn't match: 1.1.1, 1.1.0, 1.0.0, ...
location searched: crates.io index
It looks like more recent versions of the crate cannot be added to project as a dependency. I can indeed change my requested version to 1.1.1 and that will get added fine. Any ideas for what's causing this behavior?