-
Couldn't load subscription status.
- Fork 2.7k
Description
Problem
The difference between package/feature and package?/feature syntax is unfortunate as it can be a little confusing and inelegant. Ideally we would have kept the original syntax, but the ? was added to retain backwards compatibility.
Proposed Solution
It might be worth considering dropping the ? syntax in the next edition. package/feature would behave the same as the ? variant. With the use of toml_edit, it may be possible to enhance cargo fix in order to automatically update Cargo.toml to retain backwards compatibility. If the package is optional, then it would rewrite the [features] table to convert "package/feature" to "dep:package", "package/feature" (and also possibly define a feature named "package" if it doesn't already exist and dep:package isn't already used).
Notes
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status