awesome-rust icon indicating copy to clipboard operation
awesome-rust copied to clipboard

Mark required rustc version

Open Stebalien opened this issue 9 years ago • 5 comments

Something like: rustc stable rustc nightly

It would be nice to get crates.io support for this (rust-lang/crates.io#168) but that might take a while.

Stebalien avatar Jun 16 '16 14:06 Stebalien

If support for this was to be introduced to crates.io, I am all for, although it would require a lot of work to retroactively add the badges to older entries

luciusmagn avatar Mar 27 '18 19:03 luciusmagn

Once https://github.com/rust-lang/rust/issues/65262 gets implemented we could possibly feed off that. Maybe write a tool to grab Cargo.toml files and look for the relevant field.

palfrey avatar Jan 30 '20 15:01 palfrey

Once rust-lang/rust#65262 gets implemented we could possibly feed off that. Maybe write a tool to grab Cargo.toml files and look for the relevant field.

Just wanted to remind that the RFC was implemented

Israel-Laguan avatar Jan 18 '23 12:01 Israel-Laguan

Once rust-lang/rust#65262 gets implemented we could possibly feed off that. Maybe write a tool to grab Cargo.toml files and look for the relevant field.

Just wanted to remind that the RFC was implemented

Feel like writing the tool?

palfrey avatar Jan 18 '23 12:01 palfrey

So I was checking the docs, seems like the idea of rust-lang/rust/issues/65262 is "Minimal Version" instead of "stable vs nightly".

Also, this solution is dependent on the field to be available in each repo. for example, the first item in the list, alacritty, doesn't have the field in the main cargo file.

The plans that I think right now are:

  1. Make PRs in each repo, asking to include the field rust-version to add a badge "MSRV 1.x.xx" or similar
  2. Wait until crates.io provides another way to check the rust version
  3. Manually add the badge by testing each repo, stating the time it was last tested

Personally vote for option 2. Also, if someone else has another plan of action would be good to check.

Israel-Laguan avatar Jan 18 '23 13:01 Israel-Laguan