-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📝 define MSRV #249
📝 define MSRV #249
Conversation
|
I just tested whether there is a default colour for the MSRV badge; there is none. So, we need to decide for / agree on a colour. The submitted suggestion uses "brightgreen" but I also saw "orange" and "green" (more yellow than green, in my opinion). If the colours are the same as for the other badges, "blue" and "violet" should work, as well. |
I'm currently on vacation. I'll look into it when a free moment opens up 👍 |
The MSRV will not change. |
At least does the MSRV checking workflow work -- despite the contained stylistic issues! |
I am sorry, the workflow for the MSRV check does not work as expected. I will remove it for now and add it in a separate PR. |
The check can fit as part of the lint workflow as |
Thanks for the work @kevinmatthes ! |
To further simplify it, a failing CI step would suffice. Something like this might work. cargo msrv list 2> versions.txt
new="$(egrep [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+ versions.txt | tail -n 1 | cut -d \ -f 2)"
current=$(cat .clippy.toml | cut -d \" -f 2)
if [ "$new" != "$current" ]; then
echo "MSRV missmatch: $new != $current"
exit 1
fi Seeing a CI step failing and checking the output if necessary is more convenient than adding comments to the PR. It will be a clear enough indicator and would keep the PR cleaner. |
As discussed in #248, it might be worth discussing whether this project should specify a certain Rust version as the Minimal Supported Rust Version (MSRV). This PR adds the basic setup for the current stable Rust version (v1.72.0):
I would like to discuss the following questions: