rustversion icon indicating copy to clipboard operation
rustversion copied to clipboard

Differentiating stable with no fixed version

Open peter-lyons-kehl opened this issue 2 years ago • 0 comments

Hi David,

Am I right that the versions come from rustc, not from cargo nor rustup's default/overridden toolchain (and neither cargo, nor rustup need to be installed at all)?

Otherwise - in addition to

  • #[rustversion::stable] matching any stable, and
  • #[rustversion::stable(1.34)] matching only that fixed stable, how about
  • #[rustversion::stable(*)] (or #[rustversion::stable(float)] or other) to match when we are on rustup default stable (and the version is not fixed, but will increase with rustup update), please?

(If the above is not possible, then for anyone's reference: cargo_toolchain crate supports that - but then I use both rustversion and cargo_toolchain.)

Either way, thank you for all your crates. Take care.

peter-lyons-kehl avatar Apr 30 '23 07:04 peter-lyons-kehl