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

Bumping version numbers in cargo/running-locally.md?

Open gendx opened this issue 2 years ago • 1 comments

This page mentions:

At the time of writing, the latest stable Rust release has these version numbers:

% rustc --version
rustc 1.61.0 (fe5b13d68 2022-05-18)
% cargo --version
cargo 1.61.0 (a028ae4 2022-04-29)

Should these numbers be bumped once in a while (together with making sure that the code snippets are still up-to-date with the latest standards - e.g. Clippy lints)?

It could also be mentioned that all the code snippets are using stable Rust, and therefore are expected to still compile in years (so readers shouldn't worry if the rustc version looks old).

gendx avatar Feb 03 '23 13:02 gendx

Should these numbers be bumped once in a while (together with making sure that the code snippets are still up-to-date with the latest standards - e.g. Clippy lints)?

Good question... since we use stable Rust (as you mention), I think it's fine to not bump the version numbers here more than 1-2 times a year.

It could also be mentioned that all the code snippets are using stable Rust, and therefore are expected to still compile in years (so readers shouldn't worry if the rustc version looks old).

That's a great point and something I hadn't thought about. A line about that would be great.

mgeisler avatar Feb 09 '23 14:02 mgeisler