2021-11-11 15:35:38 +00:00
|
|
|
# Semver tracking
|
|
|
|
|
2022-05-27 16:55:29 +01:00
|
|
|
We no longer use this file for semver tracking. Instead, we use one
|
|
|
|
`semver.md` file per crate.
|
2021-11-11 15:35:38 +00:00
|
|
|
|
2022-05-27 16:55:29 +01:00
|
|
|
When you make a change to a crate that affects source compatibility,
|
|
|
|
please append a paragraph to that crate's `semver.md`, creating it as
|
|
|
|
necessary.
|
2021-11-11 15:35:38 +00:00
|
|
|
|
2022-05-27 16:55:29 +01:00
|
|
|
Every line should begin with one of the following:
|
|
|
|
* BREAKING
|
|
|
|
* MODIFIED
|
2021-11-11 15:35:38 +00:00
|
|
|
|
2022-05-27 16:55:29 +01:00
|
|
|
A "BREAKING" change is one that may break other crates that depend on
|
|
|
|
this crate directly.
|
2021-11-11 15:35:38 +00:00
|
|
|
|
2022-05-27 16:55:29 +01:00
|
|
|
A "MODIFIED" change is one the introduces a new API, such that crates
|
|
|
|
using the new API will not work with older versions of the crate.
|
2021-11-11 15:35:38 +00:00
|
|
|
|
2022-05-27 16:55:29 +01:00
|
|
|
When we release a new version, we use these files to determine which
|
|
|
|
crates need major-version, minor-version, or patch-level version bumps.
|
|
|
|
We also use them to help write the "breaking changes" section of the
|
|
|
|
changelog. They aren't user-facing, so they don't go into much detail.
|
2021-11-11 15:35:38 +00:00
|
|
|
|
2022-05-27 16:55:29 +01:00
|
|
|
Here is an example `semver.md` file:
|
2021-11-11 15:35:38 +00:00
|
|
|
|
2022-05-27 16:55:29 +01:00
|
|
|
>```
|
|
|
|
>BREAKING: Removed the obsolete `detect_thylacine()` function.
|
|
|
|
>
|
|
|
|
>MODIFIED: New `Wombat::feed()` method.
|
|
|
|
>
|
|
|
|
>MODIFIED: `Numbat` now implements `Display`.
|
|
|
|
>
|
|
|
|
>BREAKING: The `Quokka` trait now inherits from Debug.
|
|
|
|
>```
|
2022-05-12 15:24:32 +01:00
|
|
|
|
2022-05-27 16:55:29 +01:00
|
|
|
# What is a breaking change?
|
2022-05-12 15:24:32 +01:00
|
|
|
|
2022-05-27 16:55:29 +01:00
|
|
|
We will add guidance to this section as we come up with it. For now, see
|
|
|
|
[SemVer compatibility] in the Cargo book.
|
|
|
|
|
|
|
|
[SemVer Compatibility]: https://doc.rust-lang.org/cargo/reference/semver.html
|
|
|
|
|
|
|
|
# DO NOT EDIT BELOW.
|
|
|
|
|
|
|
|
(We used to append here, so I've added an explicit note not to do that.)
|
2022-05-03 19:58:03 +01:00
|
|
|
|