assert-rs / predicates-rs

Boolean-valued predicate functions in Rust
docs.rs/predicates
Apache License 2.0
175 stars 29 forks source link

MSRV change to 1.64.0 breaks the MSRV of other crates #148

Closed HampusMat closed 1 year ago

HampusMat commented 1 year ago

The change of the MSRV to 1.64.0 is quite troublesome as it breaks the MSRV of other crates. For example, Mockall. And likely many more.

I noticed this when testing a library crate of mine on Rust 1.63.0 two days ago.

Is there any way this can be resolved? Does workspace inheritance really need to be used?

epage commented 1 year ago

Each package is responsible for its own MSRV. I would recommend checking in a Cargo.lock file (the cargo guidance on this will soon be changing, see rust-lang/cargo#8728) and using cargo update -p predicates --precise ... to set to a version that is compatible with your MSRV. Longer term, I'm hoping we can make cargo automatically do this for you. That is my next project once I wrap up some misc tasks.

HampusMat commented 1 year ago

Thank you for such a fast response! I had no idea that the Cargo.lock policy is changing. Keeping the lock file makes things a lot easier for sure.

Thank you.