cargo icon indicating copy to clipboard operation
cargo copied to clipboard

Tracking Issue for `cfg_version`

Open epage opened this issue 5 months ago • 2 comments

Summary

RFC: #2523 Original issue: N/A Implementation:

  • [ ] Initial implementation Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#cfg-version

Allow dependencies conditioned on the Rust version in a way that matches with #[cfg(version)]

[target.'cfg(not(version(1.70.0))`.dependencies]
is-terminal = "0.4.2"

See also

  • rust-lang/rust#64796
  • rustc stabilization: https://github.com/rust-lang/rust/pull/141137
  • https://github.com/rust-lang/rfcs/blob/master/text/2523-cfg-path-version.md

Unresolved Issues

No response

Future Extensions

No response

About tracking issues

Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

epage avatar May 16 '25 10:05 epage