dtolnay / rustversion

Conditional compilation according to rustc compiler version
Apache License 2.0
326 stars 15 forks source link

Differentiating stable with no fixed version #39

Closed peter-lyons-kehl closed 4 months ago

peter-lyons-kehl commented 1 year ago

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

(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.

dtolnay commented 4 months ago

I would prefer not to build this into this crate. But someone could make a more fully featured version selection crate that could build in this interaction with rustup.