Skip to content

Tracking Issue for cfg_version #15531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
epage opened this issue May 16, 2025 · 2 comments
Open
1 task

Tracking Issue for cfg_version #15531

epage opened this issue May 16, 2025 · 2 comments
Labels
A-target-dependencies Area: [target.'cfg(foo)'.dependencies] C-tracking-issue Category: A tracking issue for something unstable. S-accepted Status: Issue or feature is accepted, and has a team member available to help mentor or review

Comments

@epage
Copy link
Contributor

epage commented May 16, 2025

Summary

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

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

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 epage added the C-tracking-issue Category: A tracking issue for something unstable. label May 16, 2025
@epage epage added A-target-dependencies Area: [target.'cfg(foo)'.dependencies] S-accepted Status: Issue or feature is accepted, and has a team member available to help mentor or review labels May 16, 2025
@epage
Copy link
Contributor Author

epage commented May 16, 2025

CC @mo8it

@epage epage changed the title Tracking Issue for _cfg_version_ Tracking Issue for cfg_version May 16, 2025
@mo8it mo8it mentioned this issue May 16, 2025
@madsmtm
Copy link
Contributor

madsmtm commented May 19, 2025

Note: depending on the decided syntax, this might actually end up being (with quotes):

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

(Just noting so that we don't accidentally stabilize one syntax in the language, and another in Cargo).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-target-dependencies Area: [target.'cfg(foo)'.dependencies] C-tracking-issue Category: A tracking issue for something unstable. S-accepted Status: Issue or feature is accepted, and has a team member available to help mentor or review
Projects
Status: No status
Development

No branches or pull requests

2 participants