Implementation: #13333
Currently if you have a Cargo.lock that depends on yanked crates you are able to build the project just fine as the yanked crates still exist. However there is currently no way to create a Cargo.lock if the only versions of some dependency that satisfies version constraints are yanked, aside from creating a Cargo.lock by hand which is a really poor solution.
I propose a new flag that is added to Cargo commands capable of creating a Cargo.lock which will allow Cargo to add dependencies on yanked crates if it has no other option.
Inspired by https://users.rust-lang.org/t/crates-io-disable-yanking-crates-that-have-dependant-crates/11492
Implementation: #13333
Currently if you have a
Cargo.lockthat depends on yanked crates you are able to build the project just fine as the yanked crates still exist. However there is currently no way to create aCargo.lockif the only versions of some dependency that satisfies version constraints are yanked, aside from creating aCargo.lockby hand which is a really poor solution.I propose a new flag that is added to Cargo commands capable of creating a
Cargo.lockwhich will allow Cargo to add dependencies on yanked crates if it has no other option.Inspired by https://users.rust-lang.org/t/crates-io-disable-yanking-crates-that-have-dependant-crates/11492