foresterre / cargo-msrv

🦀 Find the minimum supported Rust version (MSRV) for your project
https://foresterre.github.io/cargo-msrv
Apache License 2.0
870 stars 27 forks source link

`verify` sub command can't be used on root of workspace (`find` can be used) #1023

Open eitsupi opened 2 hours ago

eitsupi commented 2 hours ago

I have tried the new cargo-msrv and it seems that cargo-msrv msrv find supports workspaces root (great!) but not verify. It seems that verify can't get the version from workspace.package.rust-version.

Originally posted by @eitsupi in https://github.com/foresterre/cargo-msrv/issues/590#issuecomment-2402351727

foresterre commented 2 hours ago

Thanks! I'll have a look

foresterre commented 2 hours ago

Could you describe what you did and what you expected to happen?

I tried to reproduce it, but here it seems to work as expected:

asciicast

eitsupi commented 2 hours ago

Thanks for your quick response!

My intention was to use the verify command at the root of the workspace rather than in a subdirectory. (To verify workspace.package.rust-version, which was found by the find command) It works fine for subdirectories (individual crates) as in your example.