Open glandium opened 4 years ago
When you use --package
, cargo tries to only update that one package and locks down all dependent packages. I'm surprised --precise
works.
As for letting people know why an upgrade didn't happen, #7167 something similar.
Problem I was trying to update tokio-threadpool in Firefox, and had a hard time with it, especially because
cargo update
would say absolutely nothing.Reduced Steps
cargo new foo
foo/Cargo.toml
to add:foo
directory and runcargo update
. This gives us the initial state forCargo.lock
.tokio-threadpool
andthread-executor
dependencies inCargo.toml
cargo update -p tokio-threadpool
Nothing happens, and the output is desperately empty.
Possible Solution(s)
cargo update -p tokio-threadpool --precise 0.1.17
(0.1.17 being the last version as of writing) works, and updates both tokio-threadpool and tokio-executor. I thinkcargo update -p tokio-threadpool
should work just as well.If not, then at least, cargo should say something about the fact that there is a newer version, but it can't be used because $reason, similar to what happens after upgrading both tokio-threadpool and tokio-executor, and trying to downgrade tokio-executor with
cargo update -p tokio-executor --precise 0.1.7
: