I had a very unpleasant experience:
I work on old version of Rust, usually I develop my library with dependencies by:
cargo +nightly -Z minimal-versions update
But when I publish my library by cargo publish
, I got:
Caused by:
package `home v0.5.9` cannot be built because it requires rustc 1.70.0 or newer, while the currently active rustc version is 1.65.0
Is there cargo publish
update dependencies by -Z minimal-versions
, or it's best to update the dependent version based on the rust-version
.