In this stabilization,
it was observed that stabilizing cfg(version("..")) doesn't help people immediately, because they have to wait for their MSRV to exceed the first version in which cfg(version("..")) is supported. To mitigate this, a new mechanism, cfg(has_cfg_version) was proposed.
Since then, @joshtriplett has raised good points about how this mechanism would be difficult to use. See this comment:
We need to decide whether we want to consider these questions together, or whether we'd accept a stabilization of cfg(version("..")) that sets this question aside.
cc @rust-lang/lang @est31 @jieyouxu @ehuss
Tracking:
In this stabilization,
#[cfg(version(...))]#141137it was observed that stabilizing
cfg(version(".."))doesn't help people immediately, because they have to wait for their MSRV to exceed the first version in whichcfg(version(".."))is supported. To mitigate this, a new mechanism,cfg(has_cfg_version)was proposed.Since then, @joshtriplett has raised good points about how this mechanism would be difficult to use. See this comment:
#[cfg(version(...))]#141137 (comment)We need to decide whether we want to consider these questions together, or whether we'd accept a stabilization of
cfg(version(".."))that sets this question aside.cc @rust-lang/lang @est31 @jieyouxu @ehuss
Tracking:
#[cfg(version(..))]#64796cfg_versioncargo#15531