foresterre / cargo-msrv

🦀 Find the minimum supported Rust version (MSRV) for your project

Home Page:https://foresterre.github.io/cargo-msrv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom check?

polarathene opened this issue · comments

I recently tried cargo-msrv on a project and it correctly detected the MSRV which is a great.

Another user noticed the CI did not like the MSRV though, and that was due to the MSRV for dev-dependencies was different. cargo check --tests for example would fail.

Is this something cargo-msrv could also support? It seems it'd just need to support adjusting the check command to allow setting options?

Looks like this was being tackled in May?:

Related issues:

In today's cargo msrv, you can run cargo msrv -- cargo check --tests to run cargo msrv with your command.

Would this resolve your question?

Yes! Sorry, I see that this was actually covered on the README and CLI help output. For some reason I completely missed it from both 😬

I had tried searching through the issues (and open PRs as linked above), thinking this hadn't been covered. The README has had it since Jan 2022, and in Dec 2022 an example specifically for this cargo check --tests command was contributed 😓


For quick reference if anyone lands on this issue:

image

image

image

No worries! Glad it works!