Skip to main content

Module release_notes

Module release_notes 

Source
Expand description

The cumulative migration note (#3178).

design/bynk-release-discipline.md promises each release an upgrade note: what breaks, and how to move. It is assembled, not remembered. An increment declares breaking: in its pending file; the stamp (crate::stamp) writes it under the increment’s version into the Book page UPGRADING_PAGE; and release_section — behind cargo xtask release-notes — reads that page to build the “Upgrading from vPREV” section of a release body, covering every version after the previous release up to and including this one.

The page is the canonical record; the release body is derived from it, so the two cannot drift.

Constants§

ENTRIES_MARKER
The marker the stamp inserts new entries after (newest first). It is an HTML comment so it is invisible in the rendered page.
UPGRADING_PAGE
The Book’s upgrading page, relative to the repo root.

Functions§

check_page
Consistency problems on the upgrading page (empty means consistent).
insert_upgrading_entries
Insert entries (already newest-first) straight after ENTRIES_MARKER.
parse_entries
Every (version, note) entry on the page, in page order (newest first).
parse_release_tag
The version a release tag names: vX.Y.Z, with any pre-release suffix (v0.16.0-rc1) dropped, as release.yml’s verify job does, so a pre-release tag still gets a release body.
previous_tag
The release before current among tags: the greatest plain vX.Y.Z tag strictly below it. Pre-release tags (v0.16.0-rc1) and anything unparseable are ignored.
release_section
The release-body section: breaking changes in (prev, tag], oldest first. Always a section, even when empty, so a reader can tell “nothing breaks” from “nobody wrote the note”.
upgrading_entry
One page entry: a ## vX.Y.Z heading and the note.