Some binary crates are outdated and have suboptimal Cargo.toml files. In that case, it can occur that the dependencies listed in Cargo.toml were updated since the crate was published and an incompatibility arises. These crates can then only be succesfully installed by passing --locked which causes the Cargo.lock to be used if it is published by that binary crate.
Support passing
--locked
tocargo install
.Motivation
Some binary crates are outdated and have suboptimal
Cargo.toml
files. In that case, it can occur that the dependencies listed inCargo.toml
were updated since the crate was published and an incompatibility arises. These crates can then only be succesfully installed by passing--locked
which causes theCargo.lock
to be used if it is published by that binary crate.