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?
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:
No worries! Glad it works!