-
Notifications
You must be signed in to change notification settings - Fork 628
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
Add a deprecated property to Cargo.toml #549
Comments
Updating of Cargo.toml requires publishing a new version, so there wouldn't be a way to deprecate an existing version. But the functionality would certainly be useful. It could be implemented similarly to |
@pornel AFAIR wasn't it proposed to allow updating Irregardless this wouldn't be for a single version it would be for the whole crate. All versions of the crate would be deprecated. So it wouldn't be the worst thing if you were deprecating to put out a final version. |
I feel like rather than a binary deprecated/not deprecated flag, it'd be more useful to have a "maintenance" or "support" or "maturity" field that could have a set of values. I had a proposal for something like this in one version of the rfc 1824 proposal, wdyt? |
@carols10cents Oh yeah, that is exactly it I must have forgotten that was there. I do think that list should have an additional |
I've mentioned deprecation of a specific version, because
So reasons for deprecation are a bit different than support/maintenance status of a crate. Cargo 'yank' partially covers deprecation, but lacks ability to explain why the version was yanked. So maybe adding explanation to the yank command would be useful? (regardless of maintenance status property) |
I'm going to close this issue-- I've added "deprecated" as a maintenance label that we'll add as part of #704 for cases when you want to deprecate the whole crate, and you can use the crate description to explain why or point to a new crate. Adding a reason to "yank" is covered by rust-lang/cargo#2608. Thanks! |
Seeing #542 makes me think that maybe there should be metadata info for that. For example adding a key to
Cargo.toml
,deprecated
would allow for people to say their package is deprecated and maybe with a message detailing why, or redirecting viewers to another crate ie."use ring instead"
. This would also help with the crate ranking proposal by allowing crates to essentially opt out of being shown, or getting a high search ranking.The text was updated successfully, but these errors were encountered: