-
Notifications
You must be signed in to change notification settings - Fork 839
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 deprecation / API removal policy #6852
Changes from 5 commits
f724954
da4527b
01c6977
9eee208
1f5bf65
7632458
9fcc60c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,25 @@ versions approximately every 2 months. | |
|
||
[`object_store`]: https://crates.io/crates/object_store | ||
|
||
### Deprecation Guidelines | ||
|
||
Minor releases may deprecate, but not remove APIs. Deprecating APIs allows | ||
downstream Rust programs to still compile, but generate compiler warnings. This | ||
gives downstream crates time to migrate prior to API removal. | ||
|
||
All deprecated APIs are marked using the `#[deprecated]` attribute with both the | ||
first version they were deprecated in, and what new API to use instead. | ||
|
||
```rust | ||
#[deprecated(since = "51.0.0", note = "Use `date_part` instead")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. like in DF deprecation guidelines, it it obvious how a contributor should fill the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried to do it in 9fcc60c |
||
``` | ||
|
||
In general, deprecated APIs will be kept for at least two major releases after | ||
they were deprecated (typically between 6 - 9 months later). For example, an API | ||
deprecated in `51.3.0` can be removed in `54.0.0` (or later). Deprecated APIs | ||
may be removed earlier or later than these guidelines at the discretion of the | ||
maintainers. | ||
|
||
## Related Projects | ||
|
||
There are several related crates in different repositories | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[deprecated(since="...", note="...")]
to decrease chances of creating new deprecations with missingsince
attr? (see #6782)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarified in 9fcc60c