-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Tracking Issue for feature-metadata #14157
Comments
The docs link u posted (https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#feature-metadata) seems obsolete since there is no section called |
@amab8901 it is just a placeholder because it hasn't yet implemented |
That section of code is an internal data structure to track With all that said, I'm unsure how much benefit there is on moving this forward until we have fields to take advantage of it. |
do u have an RFC for the fields that we are waiting for? |
See future extensions in the PR description. |
My understanding is that you first need to solve this RFC before you can add those fields. Otherwise, when you try to add those fields, the compiler will complain and say "this is invalid syntax in Cargo.toml !" |
If you are looking to put up a PR, I think the thing that could be changed now is to add a new unstable feature that allows parsing the alternate syntax for feature dependencies: [features]
foo = []
bar = ["foo"]
# This should be the same as the above
bar = { enables = ["foo"] } This was accepted with RFC3416. The other attributes (e.g. |
Note that I said
The important thing for the other RFCs was metadata RFC being approved. |
Summary
RFC: #3416
Implementation: #NNNN
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#feature-metadata
Extend the schema for feature activations to be a table, not just an array, so more fields can be added in the future.
Unresolved Issues
No response
Future Extensions
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.
The text was updated successfully, but these errors were encountered: