File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,33 @@ versions approximately every 2 months.
8383
8484[ `object_store` ] : https://crates.io/crates/object_store
8585
86+ ### Deprecation Guidelines
87+
88+ Minor releases may deprecate, but not remove APIs. Deprecating APIs allows
89+ downstream Rust programs to still compile, but generate compiler warnings. This
90+ gives downstream crates time to migrate prior to API removal.
91+
92+ To deprecate an API:
93+
94+ - Mark the API as deprecated using ` #[deprecated] ` and specify the exact arrow-rs version in which it was deprecated
95+ - Concisely describe the preferred API to help the user transition
96+
97+ The deprecated version is the next version which will be released (please
98+ consult the list above). To mark the API as deprecated, use the
99+ ` #[deprecated(since = "...", note = "...")] ` attribute.
100+
101+ Foe example
102+
103+ ``` rust
104+ #[deprecated(since = " 51.0.0" , note = " Use `date_part` instead" )]
105+ ```
106+
107+ In general, deprecated APIs will remain in the codebase for at least two major releases after
108+ they were deprecated (typically between 6 - 9 months later). For example, an API
109+ deprecated in ` 51.3.0 ` can be removed in ` 54.0.0 ` (or later). Deprecated APIs
110+ may be removed earlier or later than these guidelines at the discretion of the
111+ maintainers.
112+
86113## Related Projects
87114
88115There are several related crates in different repositories
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ This crate is tested with the latest stable version of Rust. We do not currently
3737
3838The ` arrow ` crate follows the [ SemVer standard] defined by Cargo and works well
3939within the Rust crate ecosystem. See the [ repository README] for more details on
40- the release schedule and version .
40+ the release schedule, version and deprecation policy .
4141
4242[ SemVer standard ] : https://doc.rust-lang.org/cargo/reference/semver.html
4343[ repository README ] : https://github.com/apache/arrow-rs
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ This crate is tested with the latest stable version of Rust. We do not currently
3636
3737The ` parquet ` crate follows the [ SemVer standard] defined by Cargo and works well
3838within the Rust crate ecosystem. See the [ repository README] for more details on
39- the release schedule and version .
39+ the release schedule, version and deprecation policy .
4040
4141[ semver standard ] : https://doc.rust-lang.org/cargo/reference/semver.html
4242[ repository readme ] : https://github.com/apache/arrow-rs
You can’t perform that action at this time.
0 commit comments