Use stable rust in clippy check and move to a shell script#1492
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1492 +/- ##
==========================================
+ Coverage 17.87% 19.09% +1.21%
==========================================
Files 132 131 -1
Lines 10069 9433 -636
==========================================
+ Hits 1800 1801 +1
+ Misses 8269 7632 -637
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@jbesraa #1272 (comment) here you said:
but here we're just abandoning MSRV for stable? what's the rationale? |
Added msrv back, so now it is stable + msrv. Got confused a bit. I think we need to change the github action settings in the repo because the name of the check stopped being only "clippy-check" but "Clippy Lint / clippy-check ($version)". I think that's why clippy-checks are returning "Waiting for status to be reported" |
|
can we fix the commit history here? a few issues are making the review a bit confusing:
|
My bad, updated commits. |
Shourya742
left a comment
There was a problem hiding this comment.
Finally, the Clippy fixes are in! I've been encountering these for a while. Should we also consider upgrading the MSRV?
sorry, not sure what you mean by "upgrading msrv"? |
|
This is ready for review |
|
fmt CI is broken |
.. This is part of unifying the CI checks and eventually combining the rust checks into a single/few scripts.
Previously msrv was used which prevented us from using newer features from later clippy versions although it does not affect our actual msrv. Here we change msrv to stable to benifit from recent clippy features. This change should be safe unless there is a regression in cargo clippy i.e., a feature exist in 1.75 but removed in stable but this is very unlikely.
Part of #1272
The most notable fix/change in this pr is adding this https://github.com/stratum-mining/stratum/pull/1492/files#diff-40acd8e96b9e30ae1cfa538fb7ae0cdf80358930dd6f4167375f85980ee019e4 because
tracingfeature is used withing the code but did not exist in Cargo.tomlProbably eventually whats called now
Clippy-lint.ymlwould becomerust-checksand we will have in it clippy/fmt/test/.. all cargo/rust stuff that we want in the same place